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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.