SAS Transport Provider

 

The SAS API uses TCP as the default transport protocol and also supports HTTP protocol. Apart from this, it also uses the protocol-independent transport provider for SAS communication, where the users can plug-in their own transport protocol between the SAS Client and the SAS server.

 

The transport provider is responsible for all communication aspects between the client and server and interfaces with the SNMP API to communicate. It essentially acts as a bridge between the SNMP API and the actual transport protocol. The advantage of using this approach is that the SNMP API need not be aware of the underlying protocol used. For using a particular transport protocol, the user has to implement that protocol and plug-in (or register) it with the transport provider. Only one transport protocol can register with the provider at a time.

 

sasprovider.jpg

 

APIs for the SAS transport implementation

 

These interfaces are part of the com.adventnet.management.transportpackage.

  1. SessionTransportProviderlink to javadocs - This interface provides the basic IO operations. It contains the following API methods: (Refer the Javadocs for the exact syntax)

  2. - This interface is responsible for creating a transport session between the client and server. It contains the following API methods: (Refer the Javadocs for the exact syntax)

You can also implement your own transport provider. Refer Custom Transport Provider for more information.

 

 



Copyright © 2012, ZOHO Corp. All Rights Reserved.