THere is no such thing as "binary mode" and "text mode" on sockets. All data is just a stream of 'octets' (what we call bytes.)
Thus, if you call this function:
[tt]char sz[256] = "ONE\nTWO";
send(
theSocket, // socket descriptor
sz, // address of string
strlen(sz)+1, // length of string plus null terminator
0);[/tt]
The data passed across the network (excluding the TCP headers) will be:
4F 4E 45 0A 54 57 4F 00
As you can see, there was no translation of the newline to a CRLF pair.
I REALLY hope this helps.
Will