Package zyneo.sms.gateway.adaptor.xml.tcp.client

Provides the client interface XML/tcp adaptors.

See:
          Description

Interface Summary
iReceiveClient Defines the Contract between the ReceiveServer and client.
 

Class Summary
ReceiveConnection Receives a Status report or Sms-message
ReceiveServer This simple server is used for retriving Notifications and SMS-messages by using the XML/Tcp connector of the gateway.
SendConnection A connection used for sending SMS-messages by using XML/tcp-protocol.
 

Exception Summary
RequestException Exception is thrown when a transaction with the SMS-gateway fails
 

Package zyneo.sms.gateway.adaptor.xml.tcp.client Description

Provides the client interface XML/tcp adaptors.

Package Specification

This package contains the classes used when accessing the gateway through the XML/tcp adaptors.

To send messages the class SendConnection is used.

For reception of status reports two different solutions can be used, either by callbacks or by connection oriented reception.

Callbacks

To use calbacks, the handling object must implement the interface iReceiveClient. The different methods of this interface will be called when events occur. In addition, when using this mode the application must connect the socket to use for communication with the XML/tcp Receive Adaptor. Both the socket and the object implementing the iReceiveClient is passed to the constructor of the ReceiveServer.

Connection oriented reception

In this mode, the client application simply creates an instance of the ReceiveConnection and then uses the receive methods to receive SMS-messages and status reports.



Copyright © 2002 Zyneo. All Rights Reserved.