From: Brian Candler Date: 2012-10-20T06:12:44+09:00 Subject: Re: Network protocols Terje H. wrote in post #1080315: > I am working on a project involving different network protocols, http > and > irc to mention two, to simulate responses back to the sender. > In this case i was wondering if there is some way to have one daemon > listening on a port, and when requested figure out what response to > simulate > for the sender to accept the answer. I want to do this instead of having > to write separate daemons for each service. Many protocols involve the server sending a message before the client sends anything - SMTP and POP3 are two examples. So you can't guess the protocol based on what the client sends, you have to look at the port. -- Posted via http://www.ruby-forum.com/.