this.socket = SocketUtility.createSocket(this.settings, false);
if(this.socket != null) {
Connection conn = new TCPIPConnection(this.socket);
this.session = new Session(conn);
BindRequest request = getBindRequest();
Response response = this.session.bind(request);
if(response.getCommandStatus() == Data.ESME_ROK){
ret = true;
this.session.getReceiver().setQueueWaitTimeout(1000);
}
else{
logger.fatal("couldn't bind receiver . Status=" +
response.getCommandStatus());
}
}
}catch(Exception ex){
logger.fatal("error on bindReceiver exception:" + ex.toString());
}