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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server and client connections

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi, I'm trying to develop a program that will incorporate 1 server with a MySQL db, and many clients across the internet. Every client will connect to the server and the server will communicate with the server, then relaying the information back to the clients (or just 1 client depending on command passed to server). How do I go about starting this? Thanks for all your help and advice.
 
You should look at the Java Networking Tutorial ( for a description of the Socket and ServerSocket classes. With these two classes you can write server and client programs that communicate with each other. I don't know much about the database part however.

regards,
Blaxo
 
How are you relaying the data from client to server ? Servlets, Applets ?

If you had the clients open a web page on (ie your site) that has a Servlet running in Tomcat, then the Servlet(s) could do all the talking to the database, and also deal with the clients...one way anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top