Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
vsnet_oss.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15
*/
16
22
#ifndef VSNET_OSS_H
23
#define VSNET_OSS_H
24
25
#undef INLINE_VSNET_OSS
26
27
#ifdef INLINE_VSNET_OSS
28
#define INLINE inline
29
#else
30
#define INLINE
31
#endif
32
33
struct
in_addr;
34
35
namespace
VsnetOSS
36
{
39
INLINE
int
close_socket
(
int
fd );
40
41
bool
set_blocking
(
int
fd,
bool
isBlock );
42
45
INLINE
int
inet_aton
(
const
char
*cp,
struct
in_addr *inp );
46
49
INLINE
int
socket
(
int
domain,
int
type,
int
protocol );
50
54
INLINE
int
recv
(
int
fd,
void
*buf,
unsigned
int
len,
int
flags );
55
56
INLINE
void
memcpy
(
void
*dest,
const
void
*src,
int
bytesize );
57
};
58
59
#ifdef INLINE_VSNET_OSS
60
#include "
vsnet_oss.cpp
"
61
#endif
62
63
#endif
/* VSNET_OSS_H */
64
src
networking
lowlevel
vsnet_oss.h
Generated on Fri May 29 2015 23:07:35 for Vegastrike 0.5.1 rc1 by
1.8.4