PHP Scripts and Development

Home » Java » Miscellaneous » SocketConnection

  • Visit:
  • Hits:
  • Views:
  • Platform(s):
  • Database(s):
  • License:
  • Price:
  • Version:
  • Script Added:
  • Last Updated:
  • Developer:
  • Script Link:
  • Tags:

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.

Rated 0/5 (0%) (0 Votes)
 Script Name: SocketConnection
 Your Name:
 Your Email:
 Your Friends Name:
 Your Friends Email:
 Script Name : SocketConnection
 Reason :
 Message :
  Security Code:
  •  Other listings by this developer
ListStack
Java » Miscellaneous

SortedList
Java » Miscellaneous

MovePath
Java » Development

Observer3D
Java » Development

DLList
Java » Development

DoubleClickDetector
Java » Miscellaneous

ConcreteSet
Java » Miscellaneous