RetroArch
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <strings.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>
#include "minissdpc.h"
#include "miniupnpc.h"
#include "receivedata.h"
#include <net/net_compat.h>
#include "codelength.h"
Macros | |
#define | closesocket close |
#define | HAS_IP_MREQN |
#define | READ_BYTE_BUFFER(c) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | READ_COPY_BUFFER(dst, len) |
#define | READ_DISCARD_BUFFER(len) |
#define | SSDP_PORT 1900 |
#define | XSTR(s) MINISSDPC_STR(s) |
#define | MINISSDPC_STR(s) #s |
#define | UPNP_MCAST_ADDR "239.255.255.250" |
#define | UPNP_MCAST_LL_ADDR "FF02::C" /* link-local */ |
#define | UPNP_MCAST_SL_ADDR "FF05::C" /* site-local */ |
Functions | |
struct UPNPDev * | getDevicesFromMiniSSDPD (const char *devtype, const char *socketpath, int *error) |
int | connectToMiniSSDPD (const char *socketpath) |
int | disconnectFromMiniSSDPD (int s) |
int | requestDevicesFromMiniSSDPD (int s, const char *devtype) |
struct UPNPDev * | receiveDevicesFromMiniSSDPD (int s, int *error) |
static void | parseMSEARCHReply (const char *reply, int size, const char **location, int *locationsize, const char **st, int *stsize, const char **usn, int *usnsize) |
struct UPNPDev * | ssdpDiscoverDevices (const char *const deviceTypes[], int delay, const char *multicastif, int localport, int ipv6, unsigned char ttl, int *error, int searchalltypes) |
#define closesocket close |
#define HAS_IP_MREQN |
#define READ_BYTE_BUFFER | ( | c | ) |
#define READ_DISCARD_BUFFER | ( | len | ) |
#define SSDP_PORT 1900 |
#define UPNP_MCAST_ADDR "239.255.255.250" |
#define UPNP_MCAST_LL_ADDR "FF02::C" /* link-local */ |
#define UPNP_MCAST_SL_ADDR "FF05::C" /* site-local */ |
#define XSTR | ( | s | ) | MINISSDPC_STR(s) |
int connectToMiniSSDPD | ( | const char * | socketpath | ) |
int disconnectFromMiniSSDPD | ( | int | s | ) |
struct UPNPDev* getDevicesFromMiniSSDPD | ( | const char * | devtype, |
const char * | socketpath, | ||
int * | error | ||
) |
|
static |
struct UPNPDev* receiveDevicesFromMiniSSDPD | ( | int | s, |
int * | error | ||
) |
int requestDevicesFromMiniSSDPD | ( | int | s, |
const char * | devtype | ||
) |