[Prev][Next][Index][Thread]

RE: socket in linux



There is no such animal as SOCK_PACKET. There does exist a type of socket
called SOCK_SEQPACKET. A socket of type SOCK_SEQPACKET would format the data
stream into fix-lengthed "records" so that one can retrieve data on a record
by record basis, instead of guessing the number of bytes to get.
Compaq/Digital's DECnet supports that.


> ----------
> From: 	Leigh Stoller[SMTP:stoller@fast.cs.utah.edu]
> Sent: 	Tuesday, September 21, 1999 10:26 AM
> To: 	yaoyyuan@263.net
> Cc: 	oskit-users@cs.utah.edu
> Subject: 	Re: socket in linux 
> 
> > From: yaoyyuan@263.net
> > Subject: socket in linux
> > 
> > I have a question in oskit.
> > I want to use SOCK_PACKET which defined in linix/socket.h .It is used in
> > the socket function only in Linux. But in oskit the oskit/net/socket.h
> is
> > from BSD and no such definition.It has only SOCK_STREAM ,SOCK_RAW ,etc
> > definition .  So how can I use it?
> 
> I think the short answer is that you cannot. The OSKIT uses the Linux
> device drivers, but FreeBSD networking, which does not implement that.
> 
> As an aside, what is SOCK_PACKET? Kinda looks like SOCK_RAW to me, but I'm
> not sure what the differences are. 
> 
> Lbs
> 
> --------------------------------------------------------------------------
> -
> Leigh B. Stoller                     Computer Science - Flux Research
> Group
> stoller@cs.utah.edu                  University of Utah
> http://www.cs.utah.edu/~stoller      Salt Lake City, Utah 84112
> Voice: (541) 758-6252                FAX: (801) 585-3743
> --------------------------------------------------------------------------
> -
> 

Follow-Ups: