Threaded Socket Clients
Using these principles, we can design a simple client that opens
a TCP socket, and has facilities for reading/writing to the socket.
DefaultSocketClient
Class
SocketClient
Interface
SocketClientConstants
Interface
The key is that the client class Threads itself--preventing it from
blocking other code.
Previous slide
Next slide
Back to first slide
View graphic version