[omniORB] BOAiiop_port - port already in use

Guy Trudel gtrudel@mediatrix.com
Tue, 31 Oct 2000 15:37:23 -0500


>From what I understand, I don't receive an exception because in 'setsockopt'
the SO_REUSEADDR is used.

if (setsockopt(pd_rendezvous,SOL_SOCKET,
		   SO_REUSEADDR,(char*)&valtrue,sizeof(int)) ==
RC_SOCKET_ERROR)
...

SO_REUSEADDR: Allows the socket to be bound to an address that is already in
use.

Guy Trudel 

> -----Original Message-----
> From: Gary D. Duzan [mailto:gdd0@gte.com]
> Sent: Tuesday, October 31, 2000 3:38 PM
> To: Guy Trudel
> Cc: Omniorb-List (E-mail)
> Subject: Re: [omniORB] BOAiiop_port - port already in use 
> 
> 
>    Presumably when this happens the bind() call in 
> tcpSocketMTfactory.cc
> will fail when it is called via BOA_init(), and the code appears
> to throw a COMM_FAILURE in this case.
> 
> 					Gary Duzan
> 					Verizon Laboratories
> 
> 
> 
> In Message 
> <F1BED55F35F4D3118C0F00E0295CFF4D3882E8@mail.mediatrix.com> ,
>    Guy Trudel <gtrudel@mediatrix.com> wrote:
> 
> =>How can I know if the port that I specify with 
> -BOAiiop_port argument is
> =>already in use by another application ? I step through the 
> code of BOA_init
> =>and I don't see how to detect it.
> =>
> =>I'm using OmniOrb 2.8 on Windows NT4.0
> =>
> =>Guy Trudel
> =>
> =>
> =>
>