I have learnt about sockets, etc.
I can set up a basic server and client with connected and connectionless sockets>
But the thing is I can only send text, does anyone know how to send files, audio and other data over sockets?
Upto my knowledge I can only send text buffers over send() and recv()
I am on a Mac and using netbeans.
Please dont use winsock or boost, I am using system/sockets.
Thanks for all help
Winsock is the default sockets library on Windows. On BSD systems, like the OS X, the socket library is in the kernel.
Boost is a set of C++ utility classes that are so general and of sufficient quality to be considered a defacto standard and a testing ground for classes that make it into the standard library.
The difference between dealing with text and binary is binary data can contain any character, whereas text processing tends to use EOL markers and may respond EOF markers. So when sending data, both sides much agree on how much to send.