Hi Jiří,

that's right. The BSD sockets API simply does not allow you to retrieve the 
datagram if you don't know the maximum size, i.e. there is no way to peek the 
datagram size before receiving it and if you receive it and your buffer is 
insufficient, it will be croppend (and there is no way to retry). This is one 
big problem with BSD sockets and one reason for considering an alternative.

Regards
-Jiri

Jiří Zárevúcky wrote:
> as far as I can tell, the libc API only works for UDP as long as I
> know in advance the maximum length of the datagram. What if I don't
> know it? Is it possible to first query the length of the received
> datagram, allocate required storage, and then retrieve it?

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to