.net - Sending File and at the Same Time Sending Strings using TCP Socket -
i have file sharing application logging capabilities. every time user connects, client sends string telling user connected, same when client disconnects string, telling user disconnected sent on server.
now problem is, there possibility when user connects or disconnect @ same time sending file, programme not able guess info logging part , info file sharing part. want separate them without interrupting each other. tcp connection implemented in single tcp socket, i'm thinking that, maybe using separate socket either of 2 functionality can solve problem. or maybe kind of algorithm determine type of info sent, whether file info or string. involves io library , stuffs that. friend told me, maybe can seek getting file name of file beingness sent , compare string sent logging part. strings sent logging part constant, should possible, guess?
i got ideas running in head think there improve ways this. suggestions?
thanks in advance!
.net vb.net file-sharing tcpsocket
No comments:
Post a Comment