Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA6211 ; Wed, 06 Jan 93 03:10:12 EST Xref: sserve comp.unix.bsd:9713 comp.unix.admin:8824 comp.unix.misc:6171 comp.sys.sgi:25979 comp.sys.sgi.apps:36 comp.sys.sgi.misc:198 comp.unix.internals:5486 Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!cs!tasos From: tasos@cs.bu.edu (Anastasios Kotsikonas) Newsgroups: comp.unix.bsd,comp.unix.admin,comp.unix.misc,comp.sys.sgi,comp.sys.sgi.apps,comp.sys.sgi.misc,comp.unix.internals Subject: Re: Problem to transfer large data via socket communication - Need Help Message-ID: <106513@bu.edu> Date: 8 Jan 93 15:35:50 GMT References: <1993Jan8.071612.13716@news.uni-stuttgart.de> Sender: news@bu.edu Followup-To: comp.unix.bsd Organization: Computer Science Department, Boston University, Boston, MA, USA Lines: 26 In article <1993Jan8.071612.13716@news.uni-stuttgart.de$> wnkretz@ikesg1.energietechnik.uni-stuttgart.de (Oliver Kretzschmar) writes: $> $> Hey, $> $> we develope a program with socket communication. We have large $> datas to transfer. So we use the following routines $> to send data from socket to socket (stream): $> $> write(socket,(char*)data,buffer) $> read(socket,(char*)data,buffer) $> $> But now we've problems sending/receiving large data for $> example 50*50*50 matrix of floats or larger. Is there any $> transfer-bufferlimitation by using streamsockets, that we can $> manipulate ? Exists there no more comfortable possibility to $> transfer the data ? Please mail me your informations Depending on the system the limits may vary. For example, if you are on a CRAY there are routines to call which pack and unpack floats before sending them across. AIX poses a limit of 32K minus a few bytes per read. Most UNIX systems fail when sending over 50,000 bytes roughly (this is the limit on most UNIX systems). So, you should set the buffer size for the socket on both ends. Tasos