You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Dauch, Kevin - AES" <Ke...@itt.com> on 2009/06/17 18:56:43 UTC

Feature request, need to perform action after socket bind, but before connection attempt for AbstractPollingIoConnector

I'm setting up a connection using an ephemeral port to from X to Y, but before the connection is attempted I need to know the port that has been assigned after the bind operation, but before the connection is attempted.  I created an interface PostBindInitializer that is called after the bind but before connection is attempted in AbstractPollingIoConnector.connect0().  I've coded it and can submit the added code + changes for the community to review.

Kevin Dauch
Software Engineer
kevin.dauch@itt.com<ma...@itt.com> | dir + 315.838.7164
ITT AES | 474 Phoenix Drive | Rome, NY 13441


________________________________
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.

Re: Feature request, need to perform action after socket bind, but before connection attempt for AbstractPollingIoConnector

Posted by Mark Webb <el...@gmail.com>.
Kevin,

Your best bet would be to submit a bug and then post the patch, or
code.  It will probably not go in to the 2.0 baseline, but will
certainly be considered for the 3.0 baseline.



On Wed, Jun 17, 2009 at 12:56 PM, Dauch, Kevin - AES<Ke...@itt.com> wrote:
> I'm setting up a connection using an ephemeral port to from X to Y, but before the connection is attempted I need to know the port that has been assigned after the bind operation, but before the connection is attempted.  I created an interface PostBindInitializer that is called after the bind but before connection is attempted in AbstractPollingIoConnector.connect0().  I've coded it and can submit the added code + changes for the community to review.
>
> Kevin Dauch
> Software Engineer
> kevin.dauch@itt.com<ma...@itt.com> | dir + 315.838.7164
> ITT AES | 474 Phoenix Drive | Rome, NY 13441
>
>
> ________________________________
> This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
> Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
>