[comp.unix.questions] A Simple Question on Socket

elee6i5@jetson.uh.edu (10/04/90)

I am trying to recv data on a connected STREAM socket
(INET domain). 

	int recv
	char *buf;
	

What is the max size of buf that can be filled with
a single  call to recv ?

It returns after reading only 1490 or so bytes.
getscokopt with SO_RCVBUF option returned a buffer size
of 4096. When I tried setsockopt to change the buff size
it failed.

Any light (in the form of mail)  would be appreciated.

Thanks in advance,

.sundar
elee6i5@jetson.uh.edu