O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required