LIBSSDP
 All Classes Files Functions Variables Typedefs Macros
ssdp_listener.h
Go to the documentation of this file.
1 
7 #ifndef __SSDP_LISTENER_H__
8 #define __SSDP_LISTENER_H__
9 
10 #include <sys/socket.h> /* struct sockaddr_storage */
11 
12 #include "common_definitions.h"
13 #include "configuration.h"
14 
16 typedef struct ssdp_listener_s {
20  struct sockaddr_storage forwarder;
24 
37 
49  int port);
50 
56 void ssdp_listener_close(ssdp_listener_s *listener);
57 
64 void ssdp_listener_read(ssdp_listener_s *listener,
65  ssdp_recv_node_s *recv_node);
66 
75 
87 
93 void ssdp_listener_stop(ssdp_listener_s *listener);
94 
95 #endif /* __SSDP_LISTENER_H__ */
int SOCKET
SOCKET ssdp_listener_get_sock(ssdp_listener_s *listener)
int ssdp_active_listener_init(ssdp_listener_s *listener, configuration_s *conf, int port)
void ssdp_listener_stop(ssdp_listener_s *listener)
void ssdp_listener_close(ssdp_listener_s *listener)
struct sockaddr_storage forwarder
Definition: ssdp_listener.h:20
int ssdp_passive_listener_init(ssdp_listener_s *listener, configuration_s *conf)
int BOOL
static configuration_s conf
Definition: main.c:73
struct ssdp_listener_s ssdp_listener_s
int ssdp_listener_start(ssdp_listener_s *listener, configuration_s *conf)
void ssdp_listener_read(ssdp_listener_s *listener, ssdp_recv_node_s *recv_node)