By the way, if you have WebSocket or TLS you can setup a protocol
negotiation process at handshake phase. Then you can speak two different
application protocol on same port.

On 01/17/2017 10:16 AM, [email protected] wrote:
> I am wondering if it is possible to have two different ChannelPipeline,
> getting bootstrapped with the same local port?
> 
> 
> The way I set up my pipeline is through
> ClientBootstrap.connect(remoteAddress). I didn't provide a local port.
> In this case, I think the OS will manage the local port assignment for
> me. Is it possible that if I run out of available port or for some other
> reason, I end up getting two pipelines or two channels listening to the
> same local port?
> 
> 
> If thats possible, and if that local port receives a message, which
> pipeline will receive & handle that message? Or both pipeline will get
> notified and handle it?
> 
> 
> Thanks!
> 
> Erben
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/netty/93276b73-1e63-4859-bae0-77fee3b7368c%40googlegroups.com
> <https://groups.google.com/d/msgid/netty/93276b73-1e63-4859-bae0-77fee3b7368c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/0c3ee962-eb0a-762a-62cd-414d9a871551%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to