Re: Serial (rs232 etc.) to IP



On 2005-10-27, Sonic <spam@xxxxxxxx> wrote:

> I'm not sure if I am missing something, but this seems like a
> stupid conversation :)
>
> TCP is a connection based protocol and as such it ensures that
> all data is received in the correct order and without errors.
>
> There is no need to 'use' another protocol like Telnet if all
> you wish to do is transfer a serial stream of characters from
> one place to another over IP. That is what TCP/IP does.

Right, but how do you set the baud rate and parity? How do you
get notified when a break or parity error was received?

> Open a socket on one end and listen.
>
> Start sending characters to the remote socket.

You apparently have never used a UART or serial port. There's
a lot more to it that "start sending characters".

> TCP uses a sliding window mechanism, which is effectively a
> buffer of data that has been sent that has not yet been
> acknowledged. The sender will continue to send until this
> sliding window is full. As data is acknowledged from the
> remote end, the window opens up some more and more data can be
> sent.
>
> The size of the window dictates how much data you can send
> before you must receive an ACK from the other end.
>
> Every time a SYN is sent, the other end must ACK, unless the
> remote end has implemented delayed acknowledgement. You can
> normally decline delayed acknowledgement when the socket is
> first negotiated.
>
> Job done!

Hardly.

--
Grant Edwards grante Yow! YOW!!! I am having
at fun!!!
visi.com
.



Relevant Pages

  • socket buffer size
    ... I am trying to understand the relation between socket buffer size ... and sliding window size and I have a few questions about the TCP ...
    (comp.os.linux.networking)
  • Re: socket buffer size
    ... > I am trying to understand the relation between socket buffer size ... > and sliding window size and I have a few questions about the TCP ... What is the use of setting the buffer size (send ...
    (comp.os.linux.networking)