APIConfig.getInstance().setProperty(APIConfig.LINK_TIMEOUT, 3000 + "");
TcpLink link = new TcpLink("localhost", port);
Connection connection = new Connection(link, false);
connection.autoAckLink(true);
connection.autoAckMessages(true);
return connection;
}
private void bind(Connection connection, int type, String systemId, String password, String systemType) throws InvalidParameterValueException, AlreadyBoundException, VersionException, SMPPProtocolException, IllegalArgumentException, IOException {