📄 slpd_knownda.h
字号:
/* SLPDKnownDAEnumStart() *//*=========================================================================*//*=========================================================================*/int SLPDKnownDAGenerateMyDAAdvert(int errorcode, int deadda, int xid, SLPBuffer* sendbuf);/* Pack a buffer with a DAAdvert using information from a SLPDAentry *//* *//* errorcode (IN) the errorcode for the DAAdvert *//* *//* xid (IN) the xid to for the DAAdvert *//* *//* daentry (IN) pointer to the daentry that contains the rest of the info *//* to make the DAAdvert *//* *//* sendbuf (OUT) pointer to the SLPBuffer that will be packed with a *//* DAAdvert *//* *//* returns: zero on success, non-zero on error *//*=========================================================================*/#if defined(ENABLE_SLPv1)/*=========================================================================*/int SLPDKnownDAGenerateMyV1DAAdvert(int errorcode, int encoding, unsigned int xid, SLPBuffer* sendbuf);/* Pack a buffer with a v1 DAAdvert using information from a SLPDAentry *//* *//* errorcode (IN) the errorcode for the DAAdvert *//* *//* encoding (IN) the SLPv1 language encoding for the DAAdvert *//* *//* xid (IN) the xid to for the DAAdvert *//* *//* sendbuf (OUT) pointer to the SLPBuffer that will be packed with a *//* DAAdvert *//* *//* returns: zero on success, non-zero on error *//*=========================================================================*/#endif/*=========================================================================*/void SLPDKnownDAEcho(SLPMessage msg, SLPBuffer buf);/* Echo a srvreg message to a known DA *//* *//* msg (IN) the SrvReg message descriptor *//* *//* buf (IN) the SrvReg message buffer to echo *//* *//* Returns: none *//*=========================================================================*//*=========================================================================*/void SLPDKnownDAActiveDiscovery(int seconds);/* Add a socket to the outgoing list to do active DA discovery SrvRqst *//* *//* Returns: none *//*=========================================================================*//*=========================================================================*/void SLPDKnownDAPassiveDAAdvert(int seconds, int dadead);/* Send passive daadvert messages if properly configured and running as *//* a DA *//* *//* seconds (IN) number seconds that elapsed since the last call to this *//* function *//* *//* dadead (IN) nonzero if the DA is dead and a bootstamp of 0 should be *//* sent *//* *//* Returns: none *//*=========================================================================*//*=========================================================================*/void SLPDKnownDAImmortalRefresh(int seconds);/* Refresh all SLP_LIFETIME_MAXIMUM services *//* *//* seconds (IN) time in seconds since last call *//*=========================================================================*//*=========================================================================*/void SLPDKnownDADeRegisterWithAllDas(SLPMessage msg, SLPBuffer buf);/* Deregister the registration described by the specified message with all *//* known DAs *//* *//* msg (IN) A message descriptor for a SrvReg or SrvDereg message to *//* deregister *//* *//* buf (IN) Message buffer associated with msg *//* *//* Returns: None *//*=========================================================================*//*=========================================================================*/void SLPDKnownDARegisterWithAllDas(SLPMessage msg, SLPBuffer buf);/* Register the registration described by the specified message with all *//* known DAs *//* *//* msg (IN) A message descriptor for a SrvReg or SrvDereg message to *//* deregister *//* *//* buf (IN) Message buffer associated with msg *//* *//* Returns: None *//*=========================================================================*/#ifdef DEBUG/*=========================================================================*/void SLPDKnownDADump();/*=========================================================================*/#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -