|
| static void | ctrlpt_callback_enter (CtrlptCallback *self, int handle, int searchId) |
| | Marks a discovery callback as running. Called with the handle lock held, so whoever ends the search or unregisters the client afterwards waits for the callback.
|
| static void | ctrlpt_callback_leave (CtrlptCallback *self) |
| | Marks a discovery callback as finished.
|
|
static void | free_search_result (void *arg) |
| static void | send_search_result (void *arg) |
| | Sends a callback to the control point application with a SEARCH result, unless the search ended or the client unregistered after the result was queued.
|
| static int | CreateClientRequestPacket (char *RqstBuf, size_t RqstBufSize, int Mx, char *SearchTarget, int AddressFamily) |
| | Creates a HTTP search request packet depending on the input parameter.
|
|
static void | searchExpired (void *arg) |
| void | ssdp_wait_ctrlpt_callbacks (int handle, int searchId) |
| | Waits until no discovery callback of the given client is running: search results of the given search, or with searchId -1 every search result and advertisement. Returns at once when called from such a callback. The caller must not hold the handle lock.
|
| void | ssdp_handle_ctrlpt_msg (http_message_t *hmsg, struct sockaddr_storage *dest_addr, int timeout) |
| | This function handles the ssdp messages from the devices. These messages includes the search replies, advertisement of device coming alive and bye byes.
|
| int | SearchByTarget (int Hnd, int Mx, char *St, void *Cookie) |
| | Creates and send the search request for a specific URL.
|