![]() |
Socket Programming in Java |
![]() |
|
**NEW** Socket Programming Books here.
To compile :
- javac foo.java
1. TCP
2. HTTP
- TCP server : simple TCP server that prints received messages.
source : tcpServer.java
usage : java tcpServer port- TCP client : simple TCP client that sends data to server.
source : tcpClient.java
usage : java tcpClient server port
- HTTP server : simple HTTP server that implements HTTP GET method.
source : httpServer.java
usage :
- put html file fileName.html in the same directory as httpServer
- java httpServer port
- client side (Netscape): http://localhost:port/fileName.html
3. Books
Looking for good books ? Here are the Bibles you can purchase at amazon.com :
- the best book about network programming in java: Java Network Programming.
- an excellent java tutorial: Learning Java (The Java Series).
![]()
![]()
More socket programming books here.
4. Links
pont.net -> socket programming in C : simple examples
5. Contact
fred at pont.net
Use of the information and data contained on this WWW site on these pages is at your sole risk.