Socket problem with whitespaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • auberondreaming
    New Member
    • Mar 2009
    • 1

    #1

    Socket problem with whitespaces

    Hello!

    I am a java programmer who is learning C++. I am working on a project that requires a JAVA server I have written to interact with a C++ client I am currently writting. I am having difficulties writing out on the socket, specifically I try and send a char* array over the socket with whitespaces but the socket seems to only send up to the first white space. Can you help me send a message over the socket?

    <code>send(sock ,"Does this work?", 15, 0);</code>

    This results in "Does" on the server side. Thanks for the help!
Working...