Skip to content

BackshopCollege/chatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatter

#irresponsibleruby

Experiment being developed in the context of BackshopCollege while learning ruby and many other things with tdantas.

Just to practice Ruby IO Sockets.

My intention is experiemnt (SELECT) Asynchronous blocking I/O in Ruby ( Non-Blocking I/O with Blocking Notification).

Instead of Thread/Process per Connection I used the SELECT model that delegates my intention to kernel and it notify me when my intentions is ready :D

To experiment, open at least 3 terminals sessions.

 TERMINAL 1
 
 git clone https://github.com/tdantas/chattter.git
 cd chatter
 ruby chat.rb
 
  TERLMINAL 2
  telnet localhost 1234 
 
  TERLMINAL 3
  telnet localhost 1234 
 

After setup the terminals, type whatever you want !

Have Fun !

About

Ruby Chat #irresponsibleruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%