I want to create a black list in the smppserver.
Because I monitor someone connect to server every 30 second.
It never sends any authentication information to server. Of course, onbind never gets fired.
Can I deny unknown connections in OnConnected Event()?
The virtual code like it.
Unknow source connect to smppserver.
void OnClientConnectedEventHandler(object sender, SmppServerClient client);
{
if (client.ip = "aa.bb.cc.dd")
{
client. Disconnect();
{
}
If I don't terminate the unknown connection.
Will the component help me to terminate it if the connection doesn't call the smppserver.OnBind() event.
Can I reject connection in the SmppServer
Re: Can I reject connection in the SmppServer
Yes, you can deny the connections. You need to check client.RemoteEndPoint in the evClientConnected event.