Advertisement

winsock:: sending char 0's using send()?

Started by February 04, 2006 01:46 PM
2 comments, last by GameDev.net 19 years ago
i want to send a buffer of a certain length weather it has char 0s before the end of the string or not. is there a way around this?
You just supply the number of bytes you want to send as an argument to the send() function. There's no problems if the buffer contains 0s.
Advertisement
hmm. maybe i'm doing something else wrong then. for some reason when i receive i keep getting a pound sign at the end of my strings. maybe i just goofed somewhere else. i thought it was the 0 byte. thank you.

This topic is closed to new replies.

Advertisement