This is an implementation of TCP IP network communication using Ruby standard library. The server has been implemented as multi-threaded so that it can handle multiple client sockets. The client is taking the socket's buffer to read data streams. The server can handle multiple exceptions which usually occur when the socket networking happens.
Download or clone the repo, and run on the terminal.
- Clone the repo
- Open one terminal window for server socket
ruby server.rb
- Open 3 another terminal window for client socket
ruby client.rb
- Try to type in stdin
Distributed under the MIT License. See LICENSE.txt
for more information.