Connected Event
This event is fired after a successful bind operation.
Syntax
ANSI (Cross Platform) virtual int FireConnected(SMPPConnectedEventParams *e);
typedef struct {
int StatusCode;
const char *Description; int reserved; } SMPPConnectedEventParams; Unicode (Windows) virtual INT FireConnected(SMPPConnectedEventParams *e);
typedef struct {
INT StatusCode;
LPCWSTR Description; INT reserved; } SMPPConnectedEventParams;
- (void)onConnected:(int)statusCode :(NSString*)description;
#define EID_SMPP_CONNECTED 1 virtual INT IPWORKS_CALL FireConnected(INT &iStatusCode, LPSTR &lpszDescription);
Remarks
After establishing a socket connection to the SMPPServer, the class will attempt to send a bind as transmitter command. Upon completion of this operation, the server will respond with either a success or failure state, reflected in the Connected event's parameters.
StatusCode will contain the command status (error code) returned by the server. For a StatusCode of "0", Description will be "OK." Otherwise, it will contain a standard interpretation of the error.