in reply to Re: Sockets, autoflush, and TCP_NODELAY
in thread Sockets, autoflush, and TCP_NODELAY
I'd would agree with you, but I believe that the buffering is coming directly out of the machine. I'm running the packet sniffer (tcpdump) directly on the computer sending the data which is where is see the "oversized" packet being put onto the wire. (oversized = a packet with more than one read from the barcode scanner)
targetsmart: Sorry for not being clear. I am receiving data from the barcode scanner on the serial port (/dev/ttyS0). The each barcode comes in with a CR at the end; I use that to delimit the individual barcode reads within my script and write each barcode to the socket independently.
Does that clear it up any?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sockets, autoflush, and TCP_NODELAY
by BrowserUk (Patriarch) on Apr 21, 2009 at 03:23 UTC | |
by packetwhacker (Initiate) on Apr 21, 2009 at 17:17 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2009 at 17:50 UTC |