Advertisement

buffer problem in mac osx...

Started by October 26, 2004 04:32 AM
0 comments, last by eros5656 20 years, 3 months ago
so i'm trying to send a message of length 99840 bytes over my network from one computer to another. the recipient is running mac osx and if i try to set the buffer size of the recv command to anything above somewhere around 15000 i get a seg fault. i've been able to run this program fine on linux (fedora core 2) with a buffer size of 100,000 and i would like to keep the code on my sender as it is right now, so is there any way to avoid this seg fault? any way to increase the max size of a recv buffer? know why this is happening? any help would be greatly appreciated.
forgot to mention i'm programming i c++ if that changes things. my methods of communication are good old send/recv using tcp sockets.

This topic is closed to new replies.

Advertisement