Path: blob/master/thirdparty/miniupnpc/src/minissdpc.h
9904 views
/* $Id: minissdpc.h,v 1.6 2015/09/18 12:45:16 nanard Exp $ */1/* Project: miniupnp2* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/3* Author: Thomas Bernard4* Copyright (c) 2005-2015 Thomas Bernard5* This software is subjects to the conditions detailed6* in the LICENCE file provided within this distribution */7#ifndef MINISSDPC_H_INCLUDED8#define MINISSDPC_H_INCLUDED910#include "miniupnpc_declspec.h"11#include "upnpdev.h"1213/* error codes : */14#define MINISSDPC_SUCCESS (0)15#define MINISSDPC_UNKNOWN_ERROR (-1)16#define MINISSDPC_SOCKET_ERROR (-101)17#define MINISSDPC_MEMORY_ERROR (-102)18#define MINISSDPC_INVALID_INPUT (-103)19#define MINISSDPC_INVALID_SERVER_REPLY (-104)2021#ifdef __cplusplus22extern "C" {23#endif2425#if !(defined(_WIN32) || defined(__amigaos__) || defined(__amigaos4__))2627MINIUPNP_LIBSPEC struct UPNPDev *28getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath, int * error);2930MINIUPNP_LIBSPEC int31connectToMiniSSDPD(const char * socketpath);3233MINIUPNP_LIBSPEC int34disconnectFromMiniSSDPD(int s);3536MINIUPNP_LIBSPEC int37requestDevicesFromMiniSSDPD(int s, const char * devtype);3839MINIUPNP_LIBSPEC struct UPNPDev *40receiveDevicesFromMiniSSDPD(int s, int * error);4142#endif /* !(defined(_WIN32) || defined(__amigaos__) || defined(__amigaos4__)) */4344MINIUPNP_LIBSPEC struct UPNPDev *45ssdpDiscoverDevices(const char * const deviceTypes[],46int delay, const char * multicastif,47int localport,48int ipv6, unsigned char ttl,49int * error,50int searchalltypes);5152#ifdef __cplusplus53}54#endif5556#endif57585960