accept session request from client . the session state is still open . to communicate with esme properly binding request should be accepted . smppserversession session = listener.accept ; bindrequest bindreq = session.waitforbind 5000 ; if checkpassword bindreq bindreq.accept `` sys '' ; else bindreq.reject smppconstant.stat _ esme_rinvpaswd ; concode_field_sep int port concode_elem_sep int pduProcessorDegree concode_elem_sep ServerResponseDeliveryListener responseDeliveryListener concode_elem_sep ServerMessageReceiverListener messageReceiverListener concode_elem_sep SessionStateListener sessionStateListener concode_elem_sep ServerConnection serverConn concode_elem_sep int initiationTimer concode_field_sep void setResponseDeliveryListener concode_elem_sep int getPduProcessorDegree concode_elem_sep int getInitiationTimer concode_elem_sep void setTimeout concode_elem_sep int getPort concode_elem_sep void setSessionStateListener concode_elem_sep ServerMessageReceiverListener getMessageReceiverListener concode_elem_sep int getTimeout concode_elem_sep SessionStateListener getSessionStateListener concode_elem_sep void setMessageReceiverListener concode_elem_sep void close concode_elem_sep void setPduProcessorDegree concode_elem_sep void setInitiationTimer
SMPPServerSession function ( ) { Connection loc0 = serverConn . accept ( ) ; loc0 . setSoTimeout ( initiationTimer ) ; return new SMPPServerSession ( loc0 , sessionStateListener , messageReceiverListener , responseDeliveryListener , pduProcessorDegree ) ; }