NIO Help
"Sumit Panchasara" <[email protected]> Mon, 11 Jul 2005 16:58:23 +0530
| Newsgroups | gmane.comp.java.seda.user |
|---|---|
| Message-ID | <001a01c5860b$b03a2510$1a0aa8c0@Sumit> |
This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C58639.BF7AA170 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi folks, Can any body tell me how to achieve non blocking socket communication in = JAVA using java.nio.* package. I have tried but again select() call is=20 blocking so I am not able to use the Non-Blocking facility at all. = Please=20 check if at all provides non blocking IO or not. My aim is to listen on more than one port of a single machine at a time, = i.e. the functionality of SERVER. According to that it will creates=20 different channels for each port and serve the request generated by = clients. But what happens is, when I start application for listening on first = port it=20 will block whole windows until the request is granted. Instead I want to = access freely other programs during this port listening. I think I am much clear..... Waiting for answer from intelligent folks......... thanks, Sumit.=20 ------=_NextPart_000_000F_01C58639.BF7AA170 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>Hi=20 folks,<BR>Can any body tell me how to achieve non blocking socket = communication=20 in <BR>JAVA using java.nio.* package. I have tried but again select() = call is=20 <BR>blocking so I am not able to use the Non-Blocking facility at all. = Please=20 <BR>check if at all provides non blocking IO or not.<BR><BR>My aim is to = listen=20 on more than one port of a single machine at a time, <BR>i.e. the = functionality=20 of SERVER. According to that it will creates <BR>different channels for = each=20 port and serve the request generated by clients.<BR><BR>But what happens = is,=20 when I start application for listening on first port it <BR>will block = whole=20 windows until the request is granted. Instead I want to <BR>access = freely other=20 programs during this port listening.<BR><BR>I think I am much=20 clear.....<BR>Waiting for answer from intelligent=20 folks.........<BR><BR>thanks,<BR>Sumit. = </FONT><BR></FONT></DIV></BODY></HTML> ------=_NextPart_000_000F_01C58639.BF7AA170-- ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar