Creating Beans Using UDP

You now know enough about Internet communication to try it out. There are two ends to Internet communication, the sender and the receiver. The sending program sends data to a socket, which is an Internet address and port number. The receiving program waits at and periodically checks an Internet address and port number for incoming data. That's all there is to it on one level. The following compares clients to servers:

Client Server
Operates on a variable port number, assigned at connect time Nearly always operates on a fixed port
Initiates the connection and the request Listens for a request but initiates no dialog
Generally only handles one thread for one connection Generally handles multiple threads for multiple client ...

Get JavaBeans Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.