I think we can work around this issue by caching local address, too.  Please
let me know which transport type is a problem.  Is DatagramChannel the only
issue?

Trustin

On 3/9/06, Greg Duffy <[EMAIL PROTECTED]> wrote:
>
> I think this may actually be related to a Java bug.
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076965
>
> -Greg
>
> On 3/8/06, Greg Duffy <[EMAIL PROTECTED]> wrote:
> > So here's the scenario:
> >
> > I need to tell a DatagramConnector what local port to use when sending
> > datagrams to a remote address/port, but I also need to preserve the
> > local address in the process. I use the specific local address (which
> > is chosen internally by Java from the routing table, I guess, and can
> > vary in a machine with multiple NICs) in my protocol implementation.
> >
> > It seems like I should be able to set the local port without changing
> > the local address. Is there a way to accomplish this? I couldn't even
> > find a way using the standard Java APIs, but maybe I'm missing
> > something.
> >
> > Thanks,
> > Greg
> >
>



--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to