LIBSSDP
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Macros
include
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
{
18
SOCKET
sock
;
20
struct
sockaddr_storage
forwarder
;
22
BOOL
stop
;
23
}
ssdp_listener_s
;
24
35
int
ssdp_passive_listener_init
(
ssdp_listener_s
*listener,
36
configuration_s
*
conf
);
37
48
int
ssdp_active_listener_init
(
ssdp_listener_s
*listener,
configuration_s
*
conf
,
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
74
SOCKET
ssdp_listener_get_sock
(
ssdp_listener_s
*listener);
75
86
int
ssdp_listener_start
(
ssdp_listener_s
*listener,
configuration_s
*
conf
);
87
93
void
ssdp_listener_stop
(
ssdp_listener_s
*listener);
94
95
#endif
/* __SSDP_LISTENER_H__ */
ssdp_listener_s::stop
BOOL stop
Definition:
ssdp_listener.h:22
ssdp_listener_s
Definition:
ssdp_listener.h:16
ssdp_recv_node_s
Definition:
ssdp_common.h:18
SOCKET
int SOCKET
Definition:
common_definitions.h:32
ssdp_listener_get_sock
SOCKET ssdp_listener_get_sock(ssdp_listener_s *listener)
common_definitions.h
ssdp_active_listener_init
int ssdp_active_listener_init(ssdp_listener_s *listener, configuration_s *conf, int port)
Definition:
ssdp_listener.c:111
ssdp_listener_stop
void ssdp_listener_stop(ssdp_listener_s *listener)
Definition:
ssdp_listener.c:287
configuration.h
ssdp_listener_close
void ssdp_listener_close(ssdp_listener_s *listener)
Definition:
ssdp_listener.c:118
ssdp_listener_s::forwarder
struct sockaddr_storage forwarder
Definition:
ssdp_listener.h:20
ssdp_passive_listener_init
int ssdp_passive_listener_init(ssdp_listener_s *listener, configuration_s *conf)
Definition:
ssdp_listener.c:104
configuration_struct
Definition:
configuration.h:14
BOOL
int BOOL
Definition:
common_definitions.h:34
conf
static configuration_s conf
Definition:
main.c:73
ssdp_listener_s
struct ssdp_listener_s ssdp_listener_s
ssdp_listener_s::sock
SOCKET sock
Definition:
ssdp_listener.h:18
ssdp_listener_start
int ssdp_listener_start(ssdp_listener_s *listener, configuration_s *conf)
Definition:
ssdp_listener.c:144
ssdp_listener_read
void ssdp_listener_read(ssdp_listener_s *listener, ssdp_recv_node_s *recv_node)
Definition:
ssdp_listener.c:127
Generated on Mon Jun 12 2017 08:54:20 for LIBSSDP by
1.8.8