|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 /* $Id: receivedata.h,v 1.1 2011/04/11 08:21:47 nanard Exp $ */ 00002 /* Project: miniupnp 00003 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 00004 * Author: Thomas Bernard 00005 * Copyright (c) 2011 Thomas Bernard 00006 * This software is subjects to the conditions detailed 00007 * in the LICENCE file provided within this distribution */ 00008 #ifndef __RECEIVEDATA_H__ 00009 #define __RECEIVEDATA_H__ 00010 00011 /* Reads data from the specified socket. 00012 * Returns the number of bytes read if successful, zero if no bytes were 00013 * read or if we timed out. Returns negative if there was an error. */ 00014 int receivedata(int socket, char * data, int length, int timeout); 00015 00016 #endif 00017