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!

Sockets 3

Status
Not open for further replies.

DAjg

Programmer
Jul 23, 2001
1
RO
How do i create a socket in Java and how do i comunicate with.
Any help or references will be greatly apreciated.
 
Use the java.net.Socket class. Simple Example:
Code:
Socket socket = new Socket("127.0.0.1",80);
Check Javadocs for more information about what methods are available for communication. As you can imagine there is quite alot you can do with this class. Wushutwist
 
and where do i find these Javadocs... ________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top