Sending 2 things simultaniously to same client.
Hi, I'm having trouble figuring out how to do two things "simultaniously" over the same connection. Say I want to send 2 files to the same client or send 1 file and some text messages. The problem is that I use the send function to do both so I can't make sure that the client recv doesn't mix the file info with the text message (I'm using winsock). An example of the behavior I need is something similar to msn messenger (or any other chat software), there you can chat and send a file at the same time. Since I'm sending both messages and files with the send function, there is no way for the client recv function to know the difference because all it does is receiving the next bytes available over the connection.
I would really appreciate any help I can get because I don't see any solution at all.