Hi,

Is it possible to send file chunks and chat messages at the same time over a single winsock connection?

I was thinking that I could add a specific label before each file chunk or chat message before it is sent, so the receiving program could use the split function to get the label and determine what to do with the data depending on the label. For example, a file chunk would look like "CHUNK" & "|" & chunk. While a chat message would look like "MESSAGE" & "|" & strMessage. While a program is repeatedly sending file chunks to another computer, how would I send a chat message string in between the time a chunk isn't being sent?

Are there any other methods of sending file chunks and chat messages at the same time over a single winsock connection?