Skip to content

Feature/client local bind#22

Closed
JChrist wants to merge 45 commits into
RestComm:netty4from
JChrist:feature/clientLocalBind
Closed

Feature/client local bind#22
JChrist wants to merge 45 commits into
RestComm:netty4from
JChrist:feature/clientLocalBind

Conversation

@JChrist
Copy link
Copy Markdown

@JChrist JChrist commented Oct 11, 2017

This PR contains several changes:

  • Merged latest netty4 branch from fizzed
  • Updated to latest netty 4.1.16.Final
  • Added clientBindHost and clientBindPort options in SmppConnectionConfiguration, for configuring a client to bind to a specific local address when attempting to connect to a server.

jjlauer and others added 30 commits April 17, 2015 13:42
add support for missing pdu's and tags
Allowing unbound channel to respond to enquire_link PDU
Corrected name of DataCoding 0x01 in SmppConstants to IA5 (not GSM)
…r_fix

DefaultSmppServer should use IO executor passed to its constructor
It looks like these were extracted from Table 5-2 of the SMPP Protocol
Specification v3.4 using some sort of script / automation, and that
extraction got messed up from the `STATUS_INVCMDID` constant onwards,
such that thereafter the constants' comments were placed _after_ the
constant, not before.

This change simply moves the relevant constants to their correct
location, _before_ their relevant constants, consistent with the class'
other constants.  The diff is a bit messy, which can't be helped, but
the constants themselves (names and values) are not changed.

For interest, the broken layout existed in the very first commit of
the `SmppConstants.java` file (e6965ae)
which was an "initial export of svn repo for public release".
Fix-up comments on the SMPP error code constants
Set the openjdk version to 7 for travis
# Conflicts:
#	CHANGELOG.md
#	pom.xml
#	src/main/java/com/cloudhopper/smpp/impl/DefaultSmppServer.java
#	src/main/java/com/cloudhopper/smpp/transcoder/DefaultPduTranscoder.java
#	src/test/java/com/cloudhopper/smpp/transcoder/PduDecoderTest.java
#	src/test/java/com/cloudhopper/smpp/transcoder/PduEncoderTest.java
JChrist and others added 15 commits March 24, 2016 21:05
Netty4 merged with master (plus updates)
# Conflicts:
#	README.md
#	pom.xml
#	src/main/java/com/cloudhopper/smpp/transcoder/DefaultPduTranscoder.java
…ing) parameter (no method cancel without parameters exists)
…n, offering the option to configure the *client* to bind to specific host and port when trying to connect to a server
…e was protected) which receives clientBindHost and clientBindPort extra parameters, which in case that clientBindHost is not null are used for configuring the clientBootstrap to bind to a specific local address (otherwise a null InetSocketAddress is used, as per the default)
…hat there's no need to have a try/finally block in each test.

added tests for ensuring that a client can bind to a specific local address (host and maybe also port).

For the test that checks that a client is bound to a specific port as well, a port is chosen at random.
However, it is again checked that if a BindException occurs due to trying to bind to a port that was already in use earlier, the test is ignored (with junit's Assume), rather than failing, since there's not much to do for tcp connections in TIME_WAIT state.
…st supported java version

(1.5 is not supported due to several @OverRide in classes implementing interface methods)
@gsaslis
Copy link
Copy Markdown

gsaslis commented Dec 15, 2017

@JChrist would you please consider splitting this PR into two (or more) for each of the different changes you've made here?

while this may be a desirable feature (especially if it doesn't break backwards-compatibility, which, btw, is hard to tell from a quick look at this PR) and we might want to merge that in, the extra changes you're introducing are really pushing back the chances of this getting properly reviewed some time soon.

In any case, thanks for your time and effort!
It is greatly appreciated!

@gsaslis
Copy link
Copy Markdown

gsaslis commented Jan 25, 2018

@JChrist any chance you have some time to come round to this ?

@JChrist JChrist closed this Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants