will definitely NOT stop at a \0 character and they are the right functions to use. Without seeing your source code it's hard to help, the problem could be in the client or the server side.
Maybe have a look if you're using any of the normal string handling functions that stop at 0 character, like
. You could add some debugging output how much bytes you are sending and receiving. Also see Beej's guide to networking programming
], there are client/server examples in chapter 6.
Hope this helps.