mUPnP for C
|
Data Structures | |
struct | _mUpnpSocket |
struct | _mUpnpDatagramPacket |
Typedefs | |
typedef int | SOCKET |
typedef struct _mUpnpSocket | mUpnpSocket |
typedef struct _mUpnpSocket | mUpnpSocketList |
typedef struct _mUpnpDatagramPacket | mUpnpDatagramPacket |
#define MUPNP_NET_SOCKET_AUTO_IP_MASK 0xffff0000 |
#define MUPNP_NET_SOCKET_AUTO_IP_NET 0xa9fe0000 |
#define MUPNP_NET_SOCKET_CLIENT 1 |
#define MUPNP_NET_SOCKET_DGRAM 0x02 |
#define MUPNP_NET_SOCKET_DGRAM_ANCILLARY_BUFSIZE 512 |
#define MUPNP_NET_SOCKET_DGRAM_RECV_BUFSIZE 512 |
#define MUPNP_NET_SOCKET_MAXHOST 32 |
#define MUPNP_NET_SOCKET_MAXSERV 32 |
#define MUPNP_NET_SOCKET_MULTICAST_DEFAULT_TTL 4 |
#define MUPNP_NET_SOCKET_NONE 0 |
#define MUPNP_NET_SOCKET_SERVER 2 |
#define MUPNP_NET_SOCKET_STREAM 0x01 |
#define mupnp_socket_datagram_packet_getdata | ( | dgmPkt | ) |
#define mupnp_socket_datagram_packet_getlocaladdress | ( | dgmPkt | ) |
#define mupnp_socket_datagram_packet_getlocalport | ( | dgmPkt | ) |
#define mupnp_socket_datagram_packet_getremoteaddress | ( | dgmPkt | ) |
#define mupnp_socket_datagram_packet_getremoteport | ( | dgmPkt | ) |
#define mupnp_socket_datagram_packet_setdata | ( | dgmPkt, | |
value ) |
#define mupnp_socket_datagram_packet_setlocaladdress | ( | dgmPkt, | |
addr ) |
#define mupnp_socket_datagram_packet_setlocalport | ( | dgmPkt, | |
port ) |
#define mupnp_socket_datagram_packet_setremoteaddress | ( | dgmPkt, | |
addr ) |
#define mupnp_socket_datagram_packet_setremoteport | ( | dgmPkt, | |
port ) |
#define mupnp_socket_dgram_new | ( | ) |
#define mupnp_socket_getaddress | ( | socket | ) |
#define mupnp_socket_getdirection | ( | socket | ) |
#define mupnp_socket_getid | ( | socket | ) |
#define mupnp_socket_getport | ( | socket | ) |
#define mupnp_socket_gettype | ( | socket | ) |
#define mupnp_socket_isclient | ( | socket | ) |
#define mupnp_socket_isdatagramstream | ( | socket | ) |
#define mupnp_socket_isserver | ( | socket | ) |
#define mupnp_socket_issocketstream | ( | socket | ) |
#define MUPNP_SOCKET_LF '\n' |
#define mupnp_socket_setaddress | ( | socket, | |
value ) |
#define mupnp_socket_setdirection | ( | socket, | |
value ) |
#define mupnp_socket_setport | ( | socket, | |
value ) |
#define mupnp_socket_settype | ( | socket, | |
value ) |
#define mupnp_socket_stream_new | ( | ) |
typedef struct _mUpnpDatagramPacket mUpnpDatagramPacket |
typedef struct _mUpnpSocket mUpnpSocket |
typedef struct _mUpnpSocket mUpnpSocketList |
typedef int SOCKET |
bool mupnp_socket_accept | ( | mUpnpSocket * | sock, |
mUpnpSocket * | clientSock ) |
bool mupnp_socket_bind | ( | mUpnpSocket * | sock, |
int | bindPort, | ||
const char * | bindAddr, | ||
bool | bindFlag, | ||
bool | reuseFlag ) |
void mupnp_socket_cleanup | ( | void | ) |
bool mupnp_socket_close | ( | mUpnpSocket * | socket | ) |
bool mupnp_socket_connect | ( | mUpnpSocket * | sock, |
const char * | addr, | ||
int | port ) |
void mupnp_socket_datagram_packet_copy | ( | mUpnpDatagramPacket * | dstDgmPkt, |
mUpnpDatagramPacket * | srcDgmPkt ) |
void mupnp_socket_datagram_packet_delete | ( | mUpnpDatagramPacket * | dgmPkt | ) |
mUpnpDatagramPacket * mupnp_socket_datagram_packet_new | ( | void | ) |
bool mupnp_socket_delete | ( | mUpnpSocket * | socket | ) |
int mupnp_socket_getlasterror | ( | void | ) |
bool mupnp_socket_isbound | ( | mUpnpSocket * | socket | ) |
bool mupnp_socket_joingroup | ( | mUpnpSocket * | sock, |
const char * | mcastAddr, | ||
const char * | ifAddr ) |
bool mupnp_socket_listen | ( | mUpnpSocket * | socket | ) |
mUpnpSocket * mupnp_socket_new | ( | int | type | ) |
ssize_t mupnp_socket_read | ( | mUpnpSocket * | sock, |
char * | buffer, | ||
size_t | bufferLen ) |
ssize_t mupnp_socket_readline | ( | mUpnpSocket * | sock, |
char * | buffer, | ||
size_t | bufferLen ) |
ssize_t mupnp_socket_recv | ( | mUpnpSocket * | sock, |
mUpnpDatagramPacket * | dgmPkt ) |
size_t mupnp_socket_sendto | ( | mUpnpSocket * | sock, |
const char * | addr, | ||
int | port, | ||
const char * | data, | ||
size_t | dataeLen ) |
void mupnp_socket_setid | ( | mUpnpSocket * | socket, |
SOCKET | value ) |
bool mupnp_socket_setmulticastttl | ( | mUpnpSocket * | sock, |
int | ttl ) |
bool mupnp_socket_setreuseaddress | ( | mUpnpSocket * | socket, |
bool | flag ) |
bool mupnp_socket_settimeout | ( | mUpnpSocket * | sock, |
int | sec ) |
size_t mupnp_socket_skip | ( | mUpnpSocket * | sock, |
size_t | skipLen ) |
void mupnp_socket_startup | ( | void | ) |
size_t mupnp_socket_write | ( | mUpnpSocket * | sock, |
const char * | buffer, | ||
size_t | bufferLen ) |