FS2_Open
Open source remastering of the Freespace 2 engine
multilag.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _MULTI_LAG_HEADER_FILE
13 #define _MULTI_LAG_HEADER_FILE
14 
15 #ifndef NDEBUG
16  // #define MULTI_USE_LAG
17 #endif
18 
19 #include "globalincs/pstypes.h"
20 
21 #ifdef _WIN32
22 struct fd_set;
23 #endif
24 struct timeval;
25 
26 // initialize multiplayer lagloss. in non-debug situations, this call does nothing
27 void multi_lag_init();
28 
29 // shutdown multiplayer lag
30 void multi_lag_close();
31 
32 // select for multi_lag
33 int multi_lag_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *except_fds, const timeval *timeout);
34 
35 // recvfrom for multilag
36 int multi_lag_recvfrom(uint s, char *buf, int len, int flags, struct sockaddr *from, int *fromlen);
37 
38 #endif
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: Glext.h:7308
unsigned int uint
Definition: pstypes.h:64
int multi_lag_recvfrom(uint s, char *buf, int len, int flags, struct sockaddr *from, int *fromlen)
Definition: multilag.cpp:232
GLdouble s
Definition: Glext.h:5321
GLbitfield GLuint64 timeout
Definition: Glext.h:6725
void multi_lag_init()
Definition: multilag.cpp:100
GLbitfield flags
Definition: Glext.h:6722
GLenum GLsizei len
Definition: Glext.h:6283
int multi_lag_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *except_fds, const timeval *timeout)
Definition: multilag.cpp:168
void multi_lag_close()
Definition: multilag.cpp:147