Network.recvFrom strangeness

Simon Marlow simonmar at microsoft.com
Tue Sep 23 15:32:51 EDT 2003


 
> The declaration of Network.recvFrom looks strange:
> 
>     recvFrom :: HostName -> PortID -> IO String
> 
> I thought that recvFrom should _return_ the address of the peer, not
> require it as an argument? At least that's what the corresponding
> 4.4BSD routine does:

Network.Socket.recvFrom is what you want, probably.  Network.recvFrom is
of dubious utility.

Cheers,
	Simon



More information about the Libraries mailing list