session.h File Reference

Switch Operation Management Interface. More...

#include <stdlib.h>
#include "cdecl.h"
#include "errors.h"

Go to the source code of this file.

Macros

#define SOM_LIBRARY_VERSION   100
 
#define SOM_FACILITY_MULTITHREADED   (32)
 Create a Session object. More...
 

Typedefs

typedef void SOMSessionCallback(struct SOMSession *session, void *ophandle, void *clientdata, int status, const char *opdata, size_t opdatalen)
 Prototype for callback for session operation completion. More...
 

Functions

const char * SOMError (int error)
 Return string for error code. More...
 
void SOMSetService (struct SOMSession *session, const char *service)
 Set the service name - defaults to "som". More...
 
int SOMSessionAuthenticated (struct SOMSession *session)
 Return TRUE if session authenticated, FALSE otherwise. More...
 
int SOMInit (int version)
 Return string for error code. More...
 
int SOMSessionCreate (int facilities, void *clientdata, struct SOMSession **session)
 
int SOMEventPoll (int dispatch, int timeout)
 Poll for asynchronous events on all open sessions. More...
 
int SOMEventPollSingle (struct SOMSession *sp, int dispatch, int timeout)
 Poll for asynchronous events on a single Session. More...
 
int SOMSessionSetTLS (struct SOMSession *session, const char *identity, const char *passphrase)
 Enable use of TLS/SSL for the session. More...
 
int SOMSessionSetSessionCallback (struct SOMSession *session, SOMSessionCallback *callback, SOMSessionCallback **oldvalue)
 Set the session callback function for this session. More...
 
int SOMSessionOpen (struct SOMSession *session, const char *host, int port, const char *username, const char *password, void *ophandle, int async)
 Open a session to the MTA. More...
 
int SOMSessionOpenRole (struct SOMSession *session, const char *host, int port, const char *username, const char *password, const char *role, void *ophandle, int async)
 Open a session to the MTA. More...
 
int SOMSessionOpenMech (struct SOMSession *session, const char *host, int port, const char *username, const char *passwd, void *ophandle, int async, const char *mech)
 Open a session to the MTA, specifying the SASL mechanism to be used. More...
 
int SOMSessionOpenMechRole (struct SOMSession *session, const char *host, int port, const char *username, const char *passwd, const char *role, void *ophandle, int async, const char *mech)
 Open a session to the MTA, specifying the SASL mechanism to be used. More...
 
int SOMSessionClose (struct SOMSession *sp)
 Close a X400 Session. More...
 
int SOMSessionDelete (struct SOMSession *session)
 Delete a session. More...
 
int SOMSessionClear (struct SOMSession *session, int facilities)
 Clear all subordinate objects. More...
 

Detailed Description

Switch Operation Management Interface.

This is an API for interfacing to the Isode Switch Management Interface Daemon.

Definition in file session.h.

Macro Definition Documentation

◆ SOM_LIBRARY_VERSION

#define SOM_LIBRARY_VERSION   100

Current version of SOM library

Definition at line 20 of file session.h.

All rights reserved © 2002 - 2024 Isode Ltd.