accepting binary chars in socket methods
Posted on 2006-06-03
When you use File IO in C, you should open the file in binary format (ios::binary) in order to read/write in binary format, i.e. for example process the null character as a normal char., and not as a terminating character. However, when I am passing data via sockets using send & recv functions, the null char. is being taken as a terminating char., and I can't seem to know what kind of initialization I should do for the socket to allow it to process binary characters...any help??
P.S.: I am using Windows Platform