Re: struct socket and peers

Eric.Schenk@dna.lth.se
Tue, 01 Jul 1997 19:58:51 +0200


"James R. Leu" <jleu@chaos.coredcs.com> writes:
>This a "How do I do this in the kernel" question. If there is a better list
>to post to, please give me the address, and I will take my question else
>where.
>
>With a udp socket (struct socket) how can I tell if it's peer is connected,
>or if there is data waitng to be read.

You can't tell if a UDP socket is connected, it's a connectionless protocol.

-- 
Eric Schenk                               www: http://www.dna.lth.se/~erics
Dept. of Comp. Sci., Lund University          email: Eric.Schenk@dna.lth.se
Box 118, S-221 00 LUND, Sweden   fax: +46-46 13 10 21  ph: +46-46 222 96 38