RubyFlow The Ruby and Rails community linklog

Socket Progamming - Playing around with ChatServer

Sockets ​ are​ ​ the​ ​ endpoints​ ​ of​ ​ the​ ​ communication​ ​ channel,​ ​ both​ ​ clients​ ​ and​ ​ servers​ ​ have to​ ​ use​ ​ sockets​ ​ to​ ​ communicate. Once​ ​ a ​ ​ connection​ ​ is​ ​ established​ ​ you​ ​ can​ ​ put​ ​ data​ ​ into​ ​ your​ ​ socket​ ​ and​ ​ it​ ​ will​ ​ make​ ​ its way​ ​ to​ ​ the​ ​ other​ ​ end,​ ​ where​ ​ the​ ​ receiver​ ​ will​ ​ read​ ​ from​ ​ the​ ​ socket​ ​ to​ ​ process​ ​ incoming packets.

Build a small application around above-mentioned concept to establish end-to-end communication.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in