From owner-freebsd-hackers Thu Nov 14 00:56:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA24931 for hackers-outgoing; Thu, 14 Nov 1996 00:56:38 -0800 (PST) Received: from quagmire.ki.net (root@quagmire.ki.net [205.150.102.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA24926 for ; Thu, 14 Nov 1996 00:56:33 -0800 (PST) Received: from localhost (scrappy@localhost) by quagmire.ki.net (8.8.2/8.7.5) with SMTP id DAA24960 for ; Thu, 14 Nov 1996 03:56:35 -0500 (EST) Date: Thu, 14 Nov 1996 03:56:34 -0500 (EST) From: "Marc G. Fournier" Reply-To: "Marc G. Fournier" To: hackers@freebsd.org Subject: Sockets question... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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