[4780] 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 03:31:38 1996

From: ckthum@iss.nus.sg (Thum Ching Kuan (gsingh))
To: java-interest@java.sun.com
Date: Sat, 13 Jan 1996 14:02:25 +0800 (SGT)
Cc: ckthum@iss.nus.sg

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