I'm trying to create a server socket that will take an bit stream, ie it has no end of line characters (eg CR) so I can't get the 'gets' command to read the input until the connection is broken (which I guess causes a flush of the socket).
I think I will need to read the characters individually then reconstruct the whole message, once I've determined how long the message is from a header that is sent.
I can't get my 'read' (gets) to get individual characters. If anyone knows (or could provide a snippet) on how to set the socket to do this I'd appreciate any advise going. Thanks
I think I will need to read the characters individually then reconstruct the whole message, once I've determined how long the message is from a header that is sent.
I can't get my 'read' (gets) to get individual characters. If anyone knows (or could provide a snippet) on how to set the socket to do this I'd appreciate any advise going. Thanks