Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Socket Programming in Java
1. Socket Programming in Java
1. First, make sure that you have made yourself sufficiently familiar with the lab
environment to create, build and run the traditional "Hello World" program in Java.
Refer to the Sun Java Getting Started Tutorial if you need help with this.
2. Next, work through the Sun Sockets Tutorial, implementing the programs and
reviewing other aspects of the Networking Trail as required.
3. Now load the IBM tutorial on Java Sockets into your browser. Read through the
sections called "Tutorial Tips" and "Socket Basics".
Work through the section A simple example in the IBM sockets tutorial. Implement
and run the server and client programs:
1. using the address localhost (127.0.0.1) for both server and client;
2. working with a partner and using the addresses of your machines as discovered
with your HostDetails program.
For guidance about other resources to help you learn Java and how to use it for socket
programming, see the Recommended Reading and Resources sections at the bottom of
CM637 Java Network Programming
Page 1