Date: Mon, 7 Jul 1997 20:31:59 -0700 (PDT) From: Wes Santee <wes@bogon.net> To: terry@lambert.org (Terry Lambert) Cc: gurney_j@resnet.uoregon.edu, wes@bogon.net, hackers@FreeBSD.ORG Subject: Re: Is there a thread-happy recv()? Message-ID: <199707080331.UAA08043@kryten.bogon.net> In-Reply-To: <199707071826.LAA18090@phaeton.artisoft.com> from Terry Lambert at "Jul 7, 97 11:26:04 am"
next in thread | previous in thread | raw e-mail | index | archive | help
>From the desk of Terry Lambert comes: > > Wes Santee scribbled this message on Jul 6: > > > Hi all. I noticed in a chunk of code I'm writing that a blocking call > > > to recv() is putting the entire process to sleep such that even the > > > > don't use recv, use read instead... the reason recv isn't wrapped is > > that wrapping it is pointless, and may be removed in the future (from > > man page) > > What about recvfrom()? recvfrom() seems to work okay. I substituted it for recv() and everything completed normally without suspending the entire process. I should have tried it, but I try to avoid the functions that do the same, but with more parameters. :) Cheers, -- ( Wes Santee PGP: e-mail w/Subject: "Send PGP Key" ) ( mailto:wes@bogon.net )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707080331.UAA08043>