Home » Java » Miscellaneous » SocketConnection
- Visit:
- Hits:
- Views:
- Platform(s):
- Database(s):
- License:
- Price:
- Version:
- Script Added:
- Last Updated:
- Developer:
- Script Link:
- Tags:
- SocketConnection
- 154
- 2597
- N/A
- N/A
- Other Free / Open Source License
- Free
- 1.0.0
- 11/09/2011
- 11/09/2011
- Ralph Chapin
- http://www.binpress.com/app/socketconnecti...
- code communication connection example java
Description:
Manages a Java Socket connection. Written originally for a network game where both client and server programs were massively multi-threaded. Given an active Socket, the program keeps writes from multiple threads organized and makes read data available on a dedicated thread. Thoroughly Javadoc'ed.
Code deals with the threads needed to use a socket as well as the threads that may want to write to the socket simultaneously. Provides a thread to read from the socket. Gracefully handles the many problems and failures than can beset socket connections. Useful as is and can serve as a good example of programming with sockets.
A test program is provided that establishes a connection and feeds data both ways.
- Other listings by this developer
Java » Miscellaneous
SortedList
Java » Miscellaneous
MovePath
Java » Development
Observer3D
Java » Development
DLList
Java » Development
DoubleClickDetector
Java » Miscellaneous
ConcreteSet
Java » Miscellaneous