Hi! [message #458161] |
Mon, 11 July 2005 11:18 |
Eclipse User |
|
|
|
Originally posted by: sumit.panchasara.einfochips.com
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
blocking so I am not able to use the Non-Blocking facility at all. Please
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
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
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.
|
|
|
Re: Hi! [message #458172 is a reply to message #458161] |
Mon, 11 July 2005 15:07 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"Sumit Panchasara" <sumit.panchasara@einfochips.com> wrote in message
news:datkhk$k5d$1@news.eclipse.org...
> 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
> blocking so I am not able to use the Non-Blocking facility at all. Please
> 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
> 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 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.
>
This is not the appropriate forum for this question, since it is not SWT
related.
Try the Sun Java forum or one of the comp.lang.java usenet newsgroups.
In the meantime, think threads.
---
Sunil
|
|
|
Powered by
FUDForum. Page generated in 0.03161 seconds