Ive looked through the posts and couldnt find quite what I needed to know.
Im new to socket programming and have a fairly
straight-forward question (I believe)
anyway I have established a connection between my server and client apps using a tcp socket (not UDP) I am able to send string data through the buffer but for the life of me I cant figure out how to send other data (i.e integers)
Ive tried using ntohl() and htonl() but they are either the wrong functions or I am using them incorrectly
Im using Visual C++ its an MFC dialog app but Im not using any wrapper class just the Winsock API
anyone know how to send numerical data through a socket?
or know of a clear precise example somewhere.
I appoligize in advance if this post is off topic.
and welcome any advise
thnx
Im new to socket programming and have a fairly
straight-forward question (I believe)
anyway I have established a connection between my server and client apps using a tcp socket (not UDP) I am able to send string data through the buffer but for the life of me I cant figure out how to send other data (i.e integers)
Ive tried using ntohl() and htonl() but they are either the wrong functions or I am using them incorrectly
Im using Visual C++ its an MFC dialog app but Im not using any wrapper class just the Winsock API
anyone know how to send numerical data through a socket?
or know of a clear precise example somewhere.
I appoligize in advance if this post is off topic.
and welcome any advise
thnx