Creating SMPP-client and Connect
You need to know the address and port of SMPP-server to establish connection to it. Let us create an instance of an SMPP-client and proceed with asynchronous method ConnectAsync using server data as arguments.
SmppClient _client = new SmppClient(); bool connected = await _client.ConnectAsync("localhost", 7777);
This example illustrates how an SMPP-client connects local SMPP-server available at "localhost", port 7777. It is described in according article how to create local SMPP-server.
Run the code inside the asynchronous method. After execution, the connected variable will receive information about operation result (Boolean true/false).
In most cases the successful connect is followed by bind operation.