Version
SmppSessionListener
public interface SmppSessionListener
SmppSessionListener defines a callback interface for monitoring and responding to SMPP session events. It allows users to plug in custom logic for key connection and session lifecycle events, such as incoming binds, connections, unbinds, and handler creation.
Implement this interface to receive and control session-related events from both SMPP clients and servers.
Methods:
String bindRequested(String remoteHost, Integer remotePort, String systemID, String password, Boolean isTls) | Called when a remote peer initiates a bind request. Implementers can validate credentials and return a system ID to accept the bind, or return null to reject it. |
void unbindRequested(String remoteHost, Integer remotePort, String uniqueID) | Triggered when the peer requests an unbind. |
void connectionEstablished(String remoteHost, Integer remotePort, String uniqueID) | Called when a TCP connection has been established, before binding occurs. |
void sessionBound(String remoteHost, Integer remotePort, String uniqueID) | Called when the session has been successfully bound (after a bind PDU has been accepted). |
void sessionUnbound(String remoteHost, Integer remotePort, String uniqueID) | Called when the session is explicitly unbound and terminated. |
SmppSessionHandler createClientHandler(SmppClient client, String uniqueID) | Creates a session handler for a new client-side session. |
SmppSessionHandler createServerHandler(SmppServerSession session, HealthCheckTimer timer) | Creates a session handler for a new server-side session. |
Start innovating with Mobius
What's next? Let's talk!