Hi ,

In the bind call(i guess !!)  there is an option that says something like 
"SOCK_REUSE " i am not too sure what the option is but somehting like thta
is there ..
If u specify that u can reuse the same socket ..
Hope this works 
regards,
shashil

-----Original Message-----
From: Jesse Erdmann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 1:59 AM
To: [EMAIL PROTECTED]
Subject: Binding a multicast socket to a port in use.


Hello all,

        I'm trying to port a Java server from Windows to Linux.  Both need
to
be interoperable and the clients (Win*/Linux on x86) need to be able to
connect to either.  

        On the Windows platform, the developers were able to bind a
MulticastSocket to a port already in use by other (non-Multicast)
sockets.    However, when the code tries to do this on Linux I get a
BindException: Address already in use.  Of course, this doesn't happen
when I feed it a port not in use.  However, this really isn't a viable
solution for various reasons (the process currently fails for other
reasons because of using a different port).

        Does anyone have suggestions on how to fix this without resorting to
using a different port?  Also, does anyone know specifically why this is
different between the two environments?

Thanks!

-- 

Jesse Erdmann 
Engineer 
Secure Computing Corp.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to