How are you opening your connection to the server and
your listen port (server)?

Both should be opened in lines mode. See HELP OPEN.

So...
        ; client code
        server: open/lines tcp://127.0.0.1:1234

        ; server code
        listen: open/lines tcp://:1234

Anton.
 
> Hello.
> 
> I am experimenting with TCP clients/servers in REBOL. I have a standard 
> server who listens for connections and accepts them. My problem is that 
> I didn't find a way to set these newly created ports to line mode. Any 
> ideas?
> 
> Also, I am not sure setting it to line mode will do what I expect it to. 
> Right now, if I send a single character from the client, this char will 
> be immediately processed by the server program and I don't want that to 
> happen before an entire line is sent. I know I could just concatenate al 
> chars until I have a line and then process it but this seems to be more 
> expensive than it must be.
> 
> Any help will be appreciated.
> 
> -Bruno

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to