SmppServerConnector
public class SmppServerConnector
Implements:
io.netty.channel.ChannelHandler
io.netty.channel.ChannelInboundHandler
Extends:
io.netty.channel.ChannelInboundHandlerAdapter
SmppServerConnector is a Netty channel handler that manages new incoming network connections to the SMPP server. When a new connection is established, it links the incoming socket to the server’s session management logic. This connector is a key component in initializing the SMPP session lifecycle from the server side.
The class is annotated with @ChannelHandler.Sharable, indicating it can be reused across multiple Netty channels.
This handler is automatically added to the Netty pipeline when the server is bootstrapped.
Fields:
static org.apache.logging.log4j.Logger | logger |
Constructor:
public SmppServerConnector(SmppServer server,
PeriodicQueuedTasks<Timer> timersQueue)
Parameters:
server: Reference to the main SmppServer instance.
timersQueue: A queue for scheduling periodic tasks, such as timeouts or heartbeat checks.
Initializes the connector with a reference to the SMPP server and a task scheduler.
Methods:
void channelActive(ChannelHandlerContext ctx) |
Called when a new TCP channel becomes active (i.e., a client connects). It delegates handling to the server logic. Throws: Exception on Netty pipeline errors. |
Start innovating with Mobius
What's next? Let's talk!