[4784] in java-interest

home help back first fref pref prev next nref lref last post

Problem with ServerSocket.accept() ..

daemon@ATHENA.MIT.EDU (Thum Ching Kuan (gsingh))
Sun Jan 14 06:30:07 1996

From: ckthum@iss.nus.sg (Thum Ching Kuan (gsingh))
To: java@java.sun.com, java-interest@java.sun.com
Date: Sun, 14 Jan 1996 18:14:27 +0800 (SGT)

> hi,
> 
> 	Is there any way to make ServerSocket.accpet() non blocking in the
> 	sense that it just wait for new connection with certain amount of
> 	time and leave it instead of keep waiting ?  I need to use this for
> 	stream socket connection.  
> 	This can be achieved in Unix :
> 
> 		 /* Enable nonblocking mode of socket */
> 		  fcntl(sockfd, F_SETFL, O_NDELAY);
> 
> 		/* Listen to client */
> 		 listen(sockfd, 5);
> 
> 	Thanks for any help.
> 
> 
> Regards,
> THUM
> ckthum@iss.nus.sg
> 

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post