CS 441 - Socket Examples
The following are some simple socket examples.
- This client/server pair runs a simple socket program
as an Echo Server
that only allows one client to connect to the server.
- This client/server pair improves on the previous Echo
Server that allows multiple clients to connect to the server.
- This server improves on the previous Echo Server since it
allows the "connection thread" of the server to stop executing
via a command sent from the client.
- This server improves on the previous Echo Server since it
uses a time out on the server's connection socket to continuously
check if it should stop the "connection thread" of the server
from executing.
- This example shows how to send an object across a socket
by serializing a class.
- This example is not a socket example. It shows a simple
Read/Write lock class. THis has not been fully tested.
- This example is not a socket example. It shows a simple
Read/Write lock class. THis was create to show the synchronized
methods work as desired.
These examples were written very quickly and currently
are under commented.