Saphrosit
Apr 7, 12:49 PM
Hi,
I wrote a simple server application in C. This server do nothing except print the received message, then exit. Here is the code
int listenfd,connfd,n;
struct sockaddr_in servaddr,cliaddr;
socklen_t clilen;
char *mesg = (char*) malloc(1000*sizeof(char));
listenfd=socket(PF_INET,SOCK_STREAM,0);
bzero(&servaddr,sizeof(servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_addr.s_addr = INADDR_ANY;
servaddr.sin_port=htons(20600);
bind(listenfd,(struct sockaddr *)&servaddr,sizeof(servaddr));
listen(listenfd,5);
clilen=sizeof(cliaddr);
connfd = accept(listenfd,(struct sockaddr *)&cliaddr,&clilen);
n = (int) recvfrom(connfd,mesg,1000,0,(struct sockaddr *)&cliaddr,&clilen);
sendto(connfd,mesg,n,0,(struct sockaddr *)&cliaddr,sizeof(cliaddr));
printf("-------------------------------------------------------\n");
mesg[n] = 0;
printf("Received the following:\n");
printf("%s\n",mesg);
printf("-------------------------------------------------------\n");
close(connfd);
close(listenfd);
I managed to establish a connection using telnet and running
Helena, 42, has two kids with
Related: Helena Bonham Carter
Seriously folks, this cast is
more...
PHoto Credit: Helena Bonham
Bonham-Carter has always
more...
Helena or daddy Tim Burton?
Helena Bonham Carter
more...
HELENA BONHAM CARTER AND TIM
Helena Bonham Carter
more...
Tags: helena bonham-carter
Helena Bonham Carter and Harry
more...
HELENA BONHAM CARTER photo
Helena Bonham Carter and Pregnant Photograph. Click on the photo to add a spot [Done]. Email to a Friend. Scroll Back View all 1 Scroll Forward
more...
A very pregnant Helena Bonham
Tags: helena bonham-carter
more...
Helena Bonham Carter says
Pregnant Helena Bonham Carter
Helena Bonham Carter Is
I wrote a simple server application in C. This server do nothing except print the received message, then exit. Here is the code
int listenfd,connfd,n;
struct sockaddr_in servaddr,cliaddr;
socklen_t clilen;
char *mesg = (char*) malloc(1000*sizeof(char));
listenfd=socket(PF_INET,SOCK_STREAM,0);
bzero(&servaddr,sizeof(servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_addr.s_addr = INADDR_ANY;
servaddr.sin_port=htons(20600);
bind(listenfd,(struct sockaddr *)&servaddr,sizeof(servaddr));
listen(listenfd,5);
clilen=sizeof(cliaddr);
connfd = accept(listenfd,(struct sockaddr *)&cliaddr,&clilen);
n = (int) recvfrom(connfd,mesg,1000,0,(struct sockaddr *)&cliaddr,&clilen);
sendto(connfd,mesg,n,0,(struct sockaddr *)&cliaddr,sizeof(cliaddr));
printf("-------------------------------------------------------\n");
mesg[n] = 0;
printf("Received the following:\n");
printf("%s\n",mesg);
printf("-------------------------------------------------------\n");
close(connfd);
close(listenfd);
I managed to establish a connection using telnet and running
Hellhammer
Sep 4, 09:49 AM
I found out that I answer this question over and over again and seen other people answering it as well so thought that I would create a step-by-step guide how to do this so we don't have to type the steps over and over again. The guide is also more specific than most posts are
Link: Clean Install of OS X 10.6 Snow Leopard (http://guides.macrumors.com/Clean_Install_of_OS_X_10.6_Snow_Leopard)
Feedback is very welcome. I tried to make it as simple as I could
Link: Clean Install of OS X 10.6 Snow Leopard (http://guides.macrumors.com/Clean_Install_of_OS_X_10.6_Snow_Leopard)
Feedback is very welcome. I tried to make it as simple as I could
DJMastaWes
Aug 6, 04:10 PM
Inspired by your avatar?
dino26
May 2, 11:15 AM
Let us know how you get on man , though when you go back to Israel you will probally get stung by customs
more...
Moof1904
Feb 24, 07:56 AM
total 0
drwxr-xr-x 1 root admin 0 22 Apr 2009 .
drwxrwxrwt 5 root admin 170 24 Feb 07:50 ..
drwxr-xr-x 1 root admin 0 22 Apr 2009 .
drwxrwxrwt 5 root admin 170 24 Feb 07:50 ..
Rower_CPU
Jul 1, 11:43 PM
Holding option and clicking "shut down" will bypass the dialog box.
Alternatively, you can press Control + Option + Command + Power/Eject Key - according to this page (http://macos.about.com/library/weekly/aa021400a.htm).
Alternatively, you can press Control + Option + Command + Power/Eject Key - according to this page (http://macos.about.com/library/weekly/aa021400a.htm).
more...
qawes
Oct 16, 02:41 PM
The issue with the wallpaper not 'sticking' on through the reboot never happed to me, but I can speculate that the root of the problem was the fact that you had set the wallpaper through Safari, and after that you deleted the image or the temporary files got deleted. Anyway, the best thing is to keep an organized folder.
I'm happy to hear that you just got your MBP, enjoy it!
I'm happy to hear that you just got your MBP, enjoy it!
InfoTime
Apr 29, 04:17 PM
A client of mine spilled a Diet Coke on her unibody white MacBook. I got the machine weeks after the event and after Apple told her it'd be $750 to repair. The machine would not power up or show any signs of life.
I took it apart thinking I'd find gunk on the parts and start by cleaning it up. So, I completely disassembled it only to find nothing gross inside. In fact I found no evidence of a spill. I did not take the top case apart - the keyboard and trackpad are still attached. So it appears that the spill was probably contained within the top case and didn't leak down onto the logic board.
I'm thinking about replacing the top case as I'm pretty sure that's screwed up. But, short of ordering one, reassembling everything and trying to see if that fixes it, is there some way to further troubleshoot?
I took it apart thinking I'd find gunk on the parts and start by cleaning it up. So, I completely disassembled it only to find nothing gross inside. In fact I found no evidence of a spill. I did not take the top case apart - the keyboard and trackpad are still attached. So it appears that the spill was probably contained within the top case and didn't leak down onto the logic board.
I'm thinking about replacing the top case as I'm pretty sure that's screwed up. But, short of ordering one, reassembling everything and trying to see if that fixes it, is there some way to further troubleshoot?
more...
thunderclap
Mar 14, 04:03 PM
iSwifter. I'll give it a try. Thanks!
robbieduncan
Apr 26, 03:59 PM
Views PDFs, images etc.
more...
ashwinr87
Apr 19, 11:57 AM
Thank you.. I also figured out the same thing some time back but forgot to post it here...
I would like to ask another thing.. whatever value I give in the options: does not seem to have any effect on my animations.. say If i had given[UIView animateWithDuration:0.8 delay:0.0 options: UIViewAnimationTransitionFlipFromLeft animations:^ { popContents.view.frame = CGRectMake(160, 70, 350, 350);
[self.view.superview bringSubviewToFront:self.view];
[self.view.superview addSubview:popContents.view]; }
completion: ^(BOOL finished) {
NSLog(@"DONE");
}
]; I thought by adding options:UIViewAnimationTransitionFlipFromLeft , it should have added an extra effect to my animation in addition to the zooming effect..
would you be able to help me out?
Something like this should work. You may need to tweak the UIViewAnimationOptions.
[UIView animateWithDuration:0.8 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction animations:^(void) {
popContents.view.frame = CGRectMake(320, ypos-70, 350, 350);
} completion:^(BOOL finished) {
[self.view.superview addSubview:popContents.view];
}];
Don't forget you can nest animations inside of each other.
I would like to ask another thing.. whatever value I give in the options: does not seem to have any effect on my animations.. say If i had given[UIView animateWithDuration:0.8 delay:0.0 options: UIViewAnimationTransitionFlipFromLeft animations:^ { popContents.view.frame = CGRectMake(160, 70, 350, 350);
[self.view.superview bringSubviewToFront:self.view];
[self.view.superview addSubview:popContents.view]; }
completion: ^(BOOL finished) {
NSLog(@"DONE");
}
]; I thought by adding options:UIViewAnimationTransitionFlipFromLeft , it should have added an extra effect to my animation in addition to the zooming effect..
would you be able to help me out?
Something like this should work. You may need to tweak the UIViewAnimationOptions.
[UIView animateWithDuration:0.8 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionAllowUserInteraction animations:^(void) {
popContents.view.frame = CGRectMake(320, ypos-70, 350, 350);
} completion:^(BOOL finished) {
[self.view.superview addSubview:popContents.view];
}];
Don't forget you can nest animations inside of each other.
hewmiri
Jan 29, 03:33 PM
Hi guys,
I have 2 old(ish) 24" Cinema Displays (the matte ones). Is it possible to use both of them with my (current) Mac Mini? I'm assuming I need some sort of HDMI splitter type of thing..
Thanks for your help.
I have 2 old(ish) 24" Cinema Displays (the matte ones). Is it possible to use both of them with my (current) Mac Mini? I'm assuming I need some sort of HDMI splitter type of thing..
Thanks for your help.
more...
DustinT
Mar 7, 12:14 PM
The impedance affects more than just the volume it also affects the quality of the sound pretty significantly.
R94N
Apr 12, 02:01 AM
So when is this launching? Or has it already launched?
more...
BanjoBanker
Apr 12, 04:28 PM
I agree on the iPhone 4. The iPad is a great device, but if you are in need of a new phone, the iPhone is the way to go. iPhones are fabulous devices, period. The ability to access data on the fly is unbelievable. Having all your contacts and your calendar always with you is an incredible convenience. If I had to choose between an iPhone and an iPad, I would definitely go with the iPhone. I have had one since day one and I cannot imagine life without my iPhone.
applemax
Apr 16, 12:30 PM
Hi
My gamertag is netgem21 and I wanna change it cos it sounds boring.
Wondering if anyone can come up with some ideas from this: (I don't want applemax)
My real name is Max
I like Apple
I'm not that great at gaming
I love Xbox 360 and Wii
Anything that sounds and looks cool and something that people will instantly know how to pronounce. I'm tired of people calling me 'net-g-em' instead of 'net-jem':D
Thanks and Good luck! I'm pretty fussy! :D
My gamertag is netgem21 and I wanna change it cos it sounds boring.
Wondering if anyone can come up with some ideas from this: (I don't want applemax)
My real name is Max
I like Apple
I'm not that great at gaming
I love Xbox 360 and Wii
Anything that sounds and looks cool and something that people will instantly know how to pronounce. I'm tired of people calling me 'net-g-em' instead of 'net-jem':D
Thanks and Good luck! I'm pretty fussy! :D
more...
iJohnHenry
Feb 8, 07:04 PM
Now, can we teach wolves to bring down helicopters?
We can teach dolphins to sink ships, but they are both on/under water.
Teaching a wolf to fly might be the flaw in your proposal. :D
We can teach dolphins to sink ships, but they are both on/under water.
Teaching a wolf to fly might be the flaw in your proposal. :D
simsaladimbamba
May 4, 05:53 AM
Standard RAM: 2 GB
Maximum RAM: 8 GB*
Details: 2 GB of RAM is installed as two 1 GB modules, no slots free.
*Apple officially supports a maximum of 4 GB of RAM. Originally, this model was only unofficially capable of stably supporting 6 GB of RAM, but as confirmed (http://blog.macsales.com/9102-secret-firmware-lets-late-08-macbooks-use-8gb) by site sponsor OWC, it is capable of supporting 8 GB of RAM if updated to Boot ROM Version MB51.007D.B03 and running MacOS X 10.6 "Snow Leopard."
from http://www.everymac.com/systems/apple/macbook/stats/macbook-core-2-duo-2.0-aluminum-13-late-2008-unibody-specs.html
Maximum RAM: 8 GB*
Details: 2 GB of RAM is installed as two 1 GB modules, no slots free.
*Apple officially supports a maximum of 4 GB of RAM. Originally, this model was only unofficially capable of stably supporting 6 GB of RAM, but as confirmed (http://blog.macsales.com/9102-secret-firmware-lets-late-08-macbooks-use-8gb) by site sponsor OWC, it is capable of supporting 8 GB of RAM if updated to Boot ROM Version MB51.007D.B03 and running MacOS X 10.6 "Snow Leopard."
from http://www.everymac.com/systems/apple/macbook/stats/macbook-core-2-duo-2.0-aluminum-13-late-2008-unibody-specs.html
uNext
Feb 2, 08:36 PM
I think i have somebody that can you help you out.
What would your return policy?
i remeber getting 5 iphones at launch and 3 of them had problems.
2 the touchscreen was dead and one the microphone did not work.
What would your return policy?
i remeber getting 5 iphones at launch and 3 of them had problems.
2 the touchscreen was dead and one the microphone did not work.
PurpleHeart
Mar 24, 02:21 PM
seriosly no Vancouver thread yet ?
So what will it be?
Apple store vs Best buy or Futureshop ?
I want to go to the Apple store in Pacific centre but am afraid that I won't stand a chance unless I started lining up in the wee hours of morning
I like the best buy line/ticket system (and I am guessing futureshop will have something similar as well? They did for boxing day)
so where are you guys going?
So what will it be?
Apple store vs Best buy or Futureshop ?
I want to go to the Apple store in Pacific centre but am afraid that I won't stand a chance unless I started lining up in the wee hours of morning
I like the best buy line/ticket system (and I am guessing futureshop will have something similar as well? They did for boxing day)
so where are you guys going?
kuebby
Apr 7, 04:37 PM
SBSettings
This. It's so nice to be able to turn on and off bluetooth with just a swipe of the status bar. I also like seeing how much memory is free.
This. It's so nice to be able to turn on and off bluetooth with just a swipe of the status bar. I also like seeing how much memory is free.
frankieboy
May 6, 02:42 AM
The Zalman has a back that fully encloses the fans. From the pics, the CoolerMaster does not. My experience with another design that did not enclose the fans was that the wiring eventually got snagged on something and the fans no longer received power as a result.
I think you'd be pleased with the Zalman's build quality. I know I am.
I think you'd be pleased with the Zalman's build quality. I know I am.
BrettJDeriso
Mar 11, 12:05 PM
About 16 or 17 in front of me, eight more behind at 1:00PM.
aptmunich
Dec 20, 08:33 AM
I got the LaCie Porsche design 16x dual layer burner (couldn't get the regular LaCie over here and it was cheaper...) and it works really well!
No comments:
Post a Comment