On 02/24/2012 02:28 PM, Tudor Girba wrote:
Hi Sven,
Thanks, but I did not explain my problem correctly. My problem is
actually super trivial. I have a server that throws continuously plain
text (actually, it's a logging facility), and I need to implement a
client that connects to it and consumes the plain text endlessly
without any feedback to the server. So, essentially, there is no
communication protocol involved.
Just use SocketStream. Since you are building a client it is trivial:
stream := SocketStream openConnectionToHostNamed: host port: port.
[stream isConnected] whileTrue: [
line := stream nextLineLf]
...or something like that (just see protocol of SocketStream). No need
to use Socket directly - I tend to keep repeating that on mailinglists. :)
For a trivial *forking server* you can load Blackfoot from SS and "copy"
from it, it is a stripped down server basically.
regards, Göran