|
Defines |
#define | CG_UPNP_SSDP_PORT 1900 |
#define | CG_UPNP_SSDP_ADDRESS "239.255.255.250" |
#define | CG_UPNP_SSDP_MULTICAST_ADDRESS "239.255.255.250:1900" |
#define | CG_UPNP_SSDP_MULTICAST_DEFAULT_TTL 4 |
#define | CG_UPNP_SSDP_IPV6_IF_LOCAL_ADDRESS "FF01::C" |
#define | CG_UPNP_SSDP_IPV6_LINK_LOCAL_ADDRESS "FF02::C" |
#define | CG_UPNP_SSDP_IPV6_SUBNET_ADDRESS "FF03::C" |
#define | CG_UPNP_SSDP_IPV6_ADMINISTRATIVE_ADDRESS "FF04::C" |
#define | CG_UPNP_SSDP_IPV6_SITE_LOCAL_ADDRESS "FF05::C" |
#define | CG_UPNP_SSDP_IPV6_GLOBAL_ADDRESS "FF0E::C" |
#define | CG_UPNP_SSDP_DEFAULT_MSEARCH_MX 3 |
#define | CG_UPNP_SSDP_DEFAULT_ANNOUNCE_COUNT 3 |
#define | CG_UPNP_SSDP_HEADER_LINE_MAXSIZE 128 |
#define | CG_UPNP_SSDP_ST "ST" |
#define | CG_UPNP_SSDP_MX "MX" |
#define | CG_UPNP_SSDP_MAN "MAN" |
#define | CG_UPNP_SSDP_NT "NT" |
#define | CG_UPNP_SSDP_NTS "NTS" |
#define | CG_UPNP_SSDP_NTS_ALIVE "ssdp:alive" |
#define | CG_UPNP_SSDP_NTS_BYEBYE "ssdp:byebye" |
#define | CG_UPNP_SSDP_NTS_PROPCHANGE "upnp:propchange" |
#define | CG_UPNP_SSDP_USN "USN" |
#define | CG_UPNP_SSDP_EXT "EXT" |
#define | CG_UPNP_SSDP_SID "SID" |
#define | CG_UPNP_SSDP_SEQ "SEQ" |
#define | CG_UPNP_SSDP_CALBACK "CALLBACK" |
#define | CG_UPNP_SSDP_TIMEOUT "TIMEOUT" |
#define | CG_UPNP_SSDP_SERVER "SERVER" |
#define | CG_UPNP_SSDP_FILTER_TABLE_SIZE 101 |
#define | cg_upnp_ssdprequest_setmethod(ssdpReq, value) cg_http_request_setmethod(ssdpReq,value) |
#define | cg_upnp_ssdprequest_getmethod(ssdpReq) cg_http_request_getmethod(ssdpReq) |
#define | cg_upnp_ssdprequest_seturi(ssdpReq, value) cg_http_request_seturi(ssdpReq,value) |
#define | cg_upnp_ssdprequest_geturi(ssdpReq) cg_http_request_geturi(ssdpReq) |
#define | cg_upnp_ssdprequest_sethost(ssdpReq, addr, port) cg_http_packet_sethost((CgHttpPacket*)ssdpReq, addr, port) |
#define | cg_upnp_ssdprequest_gethost(ssdpReq) cg_http_packet_gethost((CgHttpPacket*)ssdpReq) |
#define | cg_upnp_ssdprequest_setserver(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_HTTP_SERVER, value) |
#define | cg_upnp_ssdprequest_getserver(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_HTTP_SERVER) |
#define | cg_upnp_ssdprequest_setst(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_ST, value) |
#define | cg_upnp_ssdprequest_getst(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_ST) |
#define | cg_upnp_ssdprequest_setnt(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_NT, value) |
#define | cg_upnp_ssdprequest_getnt(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_NT) |
#define | cg_upnp_ssdprequest_setnts(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_NTS, value) |
#define | cg_upnp_ssdprequest_getnts(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_NTS) |
#define | cg_upnp_ssdprequest_setlocation(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_HTTP_LOCATION, value) |
#define | cg_upnp_ssdprequest_getlocation(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_HTTP_LOCATION) |
#define | cg_upnp_ssdprequest_setusn(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_USN, value) |
#define | cg_upnp_ssdprequest_getusn(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_USN) |
#define | cg_upnp_ssdprequest_setmx(ssdpReq, value) cg_http_packet_setheaderinteger((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_MX, value) |
#define | cg_upnp_ssdprequest_getmx(ssdpReq) cg_http_packet_getheaderinteger((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_MX) |
#define | cg_upnp_ssdprequest_setman(ssdpReq, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpReq, CG_UPNP_SSDP_MAN, value) |
#define | cg_upnp_ssdprequest_getman(ssdpReq) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpReq,CG_UPNP_SSDP_MAN) |
#define | cg_upnp_ssdpresponse_setst(ssdpRes, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpRes, CG_UPNP_SSDP_ST, value) |
#define | cg_upnp_ssdpresponse_getst(ssdpRes) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpRes,CG_UPNP_SSDP_ST) |
#define | cg_upnp_ssdpresponse_setext(ssdpRes) cg_http_packet_setheadervalue((CgHttpPacket*) ssdpRes, CG_UPNP_SSDP_EXT, "") |
#define | cg_upnp_ssdpresponse_setserver(ssdpRes, value) cg_http_packet_setheadervalue((CgHttpPacket*) ssdpRes, CG_UPNP_SSDP_SERVER, value) |
#define | cg_upnp_ssdpresponse_setlocation(ssdpRes, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpRes, CG_HTTP_LOCATION, value) |
#define | cg_upnp_ssdpresponse_getlocation(ssdpRes) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpRes,CG_HTTP_LOCATION) |
#define | cg_upnp_ssdpresponse_setusn(ssdpRes, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpRes, CG_UPNP_SSDP_USN, value) |
#define | cg_upnp_ssdpresponse_getusn(ssdpRes) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpRes,CG_UPNP_SSDP_USN) |
#define | cg_upnp_ssdpresponse_setdate(ssdpRes, value) cg_http_packet_setheadervalue((CgHttpPacket*)ssdpRes, CG_HTTP_DATE, value) |
#define | cg_upnp_ssdpresponse_getdate(ssdpRes) cg_http_packet_getheadervalue((CgHttpPacket*)ssdpRes,CG_HTTP_DATE) |
#define | cg_upnp_ssdp_socket_new() cg_socket_new(CG_NET_SOCKET_DGRAM) |
#define | cg_upnp_ssdp_socket_delete(socket) cg_socket_delete(socket) |
#define | cg_upnp_ssdp_socket_close(socket) cg_socket_close(socket) |
Typedefs |
typedef CgHttpResponse | CgUpnpSSDPResponse |
typedef CgHttpRequest | CgUpnpSSDPRequest |
typedef CgSocket | CgUpnpSSDPSocket |
Functions |
void | cg_upnp_ssdp_setipv6address (char *addr) |
char * | cg_upnp_ssdp_getipv6address () |
void | cg_upnp_ssdp_setannouncecount (int count) |
int | cg_upnp_ssdp_getannouncecount () |
int | cg_upnp_ssdp_getleasetime (char *cacheCont) |
char * | cg_upnp_ssdp_gethostaddress (char *ifAddr) |
CgUpnpSSDPRequest * | cg_upnp_ssdprequest_new () |
void | cg_upnp_ssdprequest_delete (CgUpnpSSDPRequest *ssdpReq) |
void | cg_upnp_ssdprequest_setleasetime (CgUpnpSSDPRequest *ssdpReq, int value) |
int | cg_upnp_ssdprequest_getleasetime (CgUpnpSSDPRequest *ssdpReq) |
char * | cg_upnp_ssdprequest_tostring (CgUpnpSSDPRequest *ssdpReq, CgString *ssdpMsg) |
CgUpnpSSDPResponse * | cg_upnp_ssdpresponse_new () |
void | cg_upnp_ssdpresponse_delete (CgUpnpSSDPResponse *ssdpRes) |
void | cg_upnp_ssdpresponse_setleasetime (CgUpnpSSDPResponse *ssdpRes, int value) |
int | cg_upnp_ssdpresponse_getleasetime (CgUpnpSSDPResponse *ssdpRes) |
char * | cg_upnp_ssdpresponse_tostring (CgUpnpSSDPResponse *ssdpRes, CgString *ssdpMsg) |
BOOL | cg_upnp_ssdp_socket_notifyfrom (CgUpnpSSDPSocket *ssdpSock, CgUpnpSSDPRequest *ssdpReq, char *bindAddr) |
BOOL | cg_upnp_ssdp_socket_postresponse (CgUpnpSSDPSocket *ssdpSock, CgUpnpSSDPResponse *ssdpReq, char *host, int port) |