00001 00040 #ifndef __LIB3195_BEEPLISTEN_H_INCLUDED__ 00041 #define __LIB3195_BEEPLISTEN_H_INCLUDED__ 1 00042 #define sbLstnCHECKVALIDOBJECT(x) {assert(x != NULL); assert(x->OID == OIDsbLstn);} 00043 00047 struct sbLstnObject 00048 { 00049 srObjID OID; 00050 struct sbSockObject* pSockListening; 00051 struct sbNVTRObject* pRootSessions; 00052 struct sbNVTRObject* pProfsSupported; 00053 char* szListenAddr; 00054 unsigned uListenPort; 00055 int bRun; 00056 }; 00057 typedef struct sbLstnObject sbLstnObj; 00058 00059 00070 srRetVal sbLstnInit(sbLstnObj** pThis); 00071 00076 srRetVal sbLstnRun(sbLstnObj* pThis); 00077 00081 srRetVal sbLstnExit(sbLstnObj *pThis); 00082 00083 00089 srRetVal sbLstnAddProfile(struct sbLstnObject *pThis, struct sbProfObject *pProf); 00090 00094 srRetVal sbLstnExit(sbLstnObj *pThis); 00095 00099 void sbLstnDestroy(sbLstnObj* pThis); 00100 00101 #endif