Path: blob/master/thirdparty/miniupnpc/src/receivedata.h
9904 views
/* $Id: receivedata.h,v 1.3 2012/06/23 22:34:47 nanard Exp $ */1/* Project: miniupnp2* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/3* Author: Thomas Bernard4* Copyright (c) 2011-2018 Thomas Bernard5* This software is subjects to the conditions detailed6* in the LICENCE file provided within this distribution */7#ifndef RECEIVEDATA_H_INCLUDED8#define RECEIVEDATA_H_INCLUDED910#include "miniupnpc_socketdef.h"1112/* Reads data from the specified socket.13* Returns the number of bytes read if successful, zero if no bytes were14* read or if we timed out. Returns negative if there was an error. */15int receivedata(SOCKET socket,16char * data, int length,17int timeout, unsigned int * scope_id);1819#endif20212223