[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Listening on 2 ports same time from SWT APP.
|
Hi!
ya it is blocked. But by creating threads also it will make number of
threads for the same port. I want to connect to different port address.
"Stefan Langer" <eclipse@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:d86ol8$r9f$1@xxxxxxxxxxxxxxxxxxx
> sumit panchasara wrote:
>> Hi,
>> I made one SWT app. using Eclipse. I am creating two buttons for server1,
>> server2 in a single application. When I press server1 it should start
>> listening on port 5555 and on pressing server2, should start listening on
>> 6666.
>> Clients issues related commands and servers should accept both
>> connections(on related ports). e.g. client1 issues command for port 5555
>> and
>> client2 issues command for port 6666.
>>
>> All clients are different machines.
>> Servers are on same machine. i.e. it is only one but listening on two
>> different ports.
>>
>> Communication Protocol I have used is TCP/IP.
>>
>> Now every thing is working fine. But for only one of these port. server
>> doesn't allow me to listen on second port. i.e. after pressing server1 I
>> can
>> not able to press server2. Thus Client listening on port 6666 for
>> example,
>> will not able to build connection with server.
>>
>> What to do in this case?
>>
>> Sumit.
>>
>>
> How are you establishing the connection? Are you creating new Threads to
> connect to server or are you doing it in the eventdispatch thread? If so
> then you are blocking the whole ui.
>
> Regards
> Stefan