Skip to content

qhwa/ruby-network-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Examples of Ruby network programming

Example codes of Ruby's TCP related network programming, including:

  1. basic classical style (bind-listen-accept-read-write-close) TCP server
  2. basic TCP server with ruby's style
  3. interactive TCP server
  4. multiplexing a TCP server with either Thread or Process
  5. basic TCP server with EventMachine
  6. two versions of SOCKS5 server with EventMachine
  7. adding your own logics to the SOCKS5 server

related slide

useful commands

This command indicates connections bind to your interested port. Replace PORT with a real port number such as 23333.

watch -n 0 'netstat -nta | grep PORT'

About

examples of ruby network programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages