Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Simple local network messaging.
Ve Mcmillan
5/7/2009 12:08:00 AM
Hi, I'm fairly new to Ruby and programming and I'm working on building a
very simple application to send text messages over a local network. I'm
fairly confident I can work out the messaging side of things, Ruby's
socket classes seem fairly straight forward. :)
My early prototype had one program to send messages and one to recieve
them but I was wondering if someone could give me a suggestion on how to
do both. Where I'm suck is getting the program to constantly let the
user type things into it while updating the messages as they are
recieved. I'm doing this purely as a command line application as I don't
want to make the code overly complicated with a GUI programing.
My early prototype worked fine sending messages to 'localhost' but when
I tried to send them to a local IP or hostname it seemed to send them
alright but the remote machine did not recieve them. I was using UDP to
do this however I am thinking about converting it to a TCP socket
instead.
I'm hoping to get a few suggestions in regards to the logic order of the
program. I've been looking for sample code of programs using the TCP
socket class but I've been pretty unsuccessful so far I'm pretty sure
that's because I'm googling badly but if anyone has some examples I
could look at that would be helpful.
Regards,
Adam
--
Posted via
http://www.ruby-...
.
1 Answer
Louis-Philippe
5/7/2009 2:49:00 PM
0
[Note: parts of this message were removed to make it a legal post.]
try to disable firewall on your client machines, if that solves the problem,
you need to poke a hole in your firewall to let the UDP communication come
in.
2009/5/6 Ve Mcmillan <saint.seraph@gmail.com>
> Hi, I'm fairly new to Ruby and programming and I'm working on building a
> very simple application to send text messages over a local network. I'm
> fairly confident I can work out the messaging side of things, Ruby's
> socket classes seem fairly straight forward. :)
>
> My early prototype had one program to send messages and one to recieve
> them but I was wondering if someone could give me a suggestion on how to
> do both. Where I'm suck is getting the program to constantly let the
> user type things into it while updating the messages as they are
> recieved. I'm doing this purely as a command line application as I don't
> want to make the code overly complicated with a GUI programing.
>
> My early prototype worked fine sending messages to 'localhost' but when
> I tried to send them to a local IP or hostname it seemed to send them
> alright but the remote machine did not recieve them. I was using UDP to
> do this however I am thinking about converting it to a TCP socket
> instead.
>
> I'm hoping to get a few suggestions in regards to the logic order of the
> program. I've been looking for sample code of programs using the TCP
> socket class but I've been pretty unsuccessful so far I'm pretty sure
> that's because I'm googling badly but if anyone has some examples I
> could look at that would be helpful.
>
> Regards,
> Adam
> --
> Posted via
http://www.ruby-...
.
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Simple local network messaging.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password