hi could anyone help me on this one. I already created a server application (listener) and a client application. my problem right now is how could the listener allow a multiple client connecting to it simultaneously?
I know the beginaccept. beginreceive, beginsend are the methods i should use. but how will the application know from which client it is reading from?
will the beginaccept method creates a new thread automatically?
Below is the logic how client sends data to server application,
Client:
- Start connection
- Send Fileheader
- send Filecontent
- Send another FileHEader
- send another filecontent
- accept a response from the listerner based on the information inside the file
_ end connection
Note: client can send different kind of information in one socket connection.
Server (listener)
- accept connection
- read info from client
- process the filecontent
- read another fileheader
- read another filecontents
- reply back to the client
Does anyone have any idea how to solve this? a sample working code will be great thanks!!!
I know the beginaccept. beginreceive, beginsend are the methods i should use. but how will the application know from which client it is reading from?
will the beginaccept method creates a new thread automatically?
Below is the logic how client sends data to server application,
Client:
- Start connection
- Send Fileheader
- send Filecontent
- Send another FileHEader
- send another filecontent
- accept a response from the listerner based on the information inside the file
_ end connection
Note: client can send different kind of information in one socket connection.
Server (listener)
- accept connection
- read info from client
- process the filecontent
- read another fileheader
- read another filecontents
- reply back to the client
Does anyone have any idea how to solve this? a sample working code will be great thanks!!!