"Java Socket Network" is an easy-to-use library that allows users to create simple, event-driven, server-client desktop applications. Users can create "server" and "client" applications which interact with each other from different machines (on the same network). Each server can support multiple clients at the same time. To create a server or client, simply extend AbstractServer (or AbstractClient) and override 4 simple methods.
The library handles message sending/receiving, client connection/disconnection, and the multi-threading associated with maintaining multiple connections at once. The 4 overridable methods within AbstractServer and AbstractClient are all called from the same thread respectively, eliminating the need to worry about most threading issues.
A variety of message sending methods are provided, however the "criticalSend" versions will suffice for most cases.
See my "Chat Network" project for a sample implementation of this library.
Features
- Java 7
- Java-docs provided
- Source and .jar(s) provided
- IP displaying utility provided (ShowIP.jar)
- Files uploaded in an Eclipse project format
- Simply include SocketNetworkAll.jar in your project to access the library