Re: [Newbies] SocketStream

2008-09-25 Thread Göran Krampe
Hey! Rob Rothwell wrote: > If I just want a simple "server" that listens for a text message on a port, > does something, and sends back a text message, do I just need to somehow: > 1. Create a Socket and listen on the port. > 2. Create a SocketStream on: theSocket. > 3. Somehow fork and wait fo

Re: [Newbies] SocketStream

2008-09-24 Thread Edgar J. De Cleene
El 9/24/08 11:42 PM, "Rob Rothwell" <[EMAIL PROTECTED]> escribió: > If I just want a simple "server" that listens for a text message on a port, > does something, and sends back a text message, do I just need to somehow: > > 1. Create a Socket and listen on the port. > 2. Create a SocketStrea

[Newbies] SocketStream

2008-09-24 Thread Rob Rothwell
If I just want a simple "server" that listens for a text message on a port, does something, and sends back a text message, do I just need to somehow: 1. Create a Socket and listen on the port. 2. Create a SocketStream on: theSocket. 3. Somehow fork and wait for input, reading it in using the Soc