Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 1996 03:56:34 -0500 (EST)
From:      "Marc G. Fournier" <scrappy@ki.net>
To:        hackers@freebsd.org
Subject:   Sockets question...
Message-ID:  <Pine.NEB.3.95.961114033307.19460H-100000@quagmire.ki.net>

next in thread | raw e-mail | index | archive | help

Hi...

	I'm getting what I think is an odd result trying to send data
from one machine to another machine over a TCP socket.  I've gone through
the "Unix Network Programming" book several times, trying to see if I can
figure what I screwed up, but can't see anything.

	Basically, the server opens up a binary file and sends the data
to the client.  The client is connecting to the server no problem, but I'm
don't seem to be able to send >79 bytes across the socket, which to me
seems *very* inefficent, and "the book" is using examples of 512bytes, so
I figure its something I'm doing wrong.

	I've tried setting MAXBYTES at 1024, 256, 128, and 80...and 80 
seems to be the only value that I can get the complete image across the 
socket.

	Ack...okay, before I sent this off, I tested one more...512...
512 and 80 both give me the results I want...

	So, did I miss something in the book that deals with this?  One of the
things that the book does mention is a potential 4k limit, but I would have
assumed that if 512 worked, anything below it would as well...:(

	I'm going to re-read the pertinent section of the book to see if
it is something I missed, but if not...can anyone tell me *why* this doesn't
work as I would have expected?

Thanks...

Marc G. Fournier                                  scrappy@ki.net
Systems Administrator @ ki.net               scrappy@freebsd.org






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.961114033307.19460H-100000>