Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a multi socket listen client?

Status
Not open for further replies.

rssql

Programmer
Jul 22, 2002
87
US
I have a project where several remote systems need to send data to an IP(host) on the internet. This data will evetually get placed in a database.

I could have several remote systems try to connect and send data at the same time.

what are some examples of how to accomplish this?

I'm just looking for ideas for openning sockets on the host to receive the data. Maybe with VB?



-------------------
The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge.
Daniel Boorstin
 
1) use a single Listener
2) have a Do ... Loop that checks the listener for a new connection.
3) create a class that uses threading to respond to the clients requests.
4) when the listener finds a new connection, pass the client to a new class that does all of the authentication & db work...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top