* select( ) function with socket
@ 2004-11-09 6:19 ych43
2004-11-09 6:44 ` Sumesh
0 siblings, 1 reply; 2+ messages in thread
From: ych43 @ 2004-11-09 6:19 UTC (permalink / raw)
To: linux-kernel
Hi,
I use select( ) function of socket programming on linux. After this function,
I try to print the return value of select( ) function out. But there is no
return value coming out, even no any error out. So I do not know what's wrong
with this function. If I incorrectly used this function, some errors would
come out. But no any error comes out. Can anybody help me.
Thank in advance!
king regards
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: select( ) function with socket
2004-11-09 6:19 select( ) function with socket ych43
@ 2004-11-09 6:44 ` Sumesh
0 siblings, 0 replies; 2+ messages in thread
From: Sumesh @ 2004-11-09 6:44 UTC (permalink / raw)
To: ych43; +Cc: linux-kernel
On success, select returns the number of descriptors contained
in the descriptor sets, which may be zero if the timeout expires before
anything happens. Hence its possible that maybe your timeout os set to zero.
Regards,
Sumesh
ych43 wrote:
>Hi,
> I use select( ) function of socket programming on linux. After this function,
>I try to print the return value of select( ) function out. But there is no
>return value coming out, even no any error out. So I do not know what's wrong
>with this function. If I incorrectly used this function, some errors would
>come out. But no any error comes out. Can anybody help me.
> Thank in advance!
> king regards
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-09 6:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-09 6:19 select( ) function with socket ych43
2004-11-09 6:44 ` Sumesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox