Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
socket.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#if (__WIN32__)
13
#include "
net/win32/win32socket.h
"
14
namespace
Net
15
{
16
class
Socket
:
public
Win32::Win32Socket
17
{
18
__DeclareClass
(
Socket
);
19
};
20
}
21
#elif __linux__
22
#include "
net/posix/posixsocket.h
"
23
namespace
Net
24
{
25
class
Socket
:
public
Posix::PosixSocket
26
{
27
__DeclareClass
(
Socket
);
28
};
29
}
30
#else
31
#error "Socket class not implemented on this platform"
32
#endif
33
//------------------------------------------------------------------------------
Socket
Platform independent wrapper class for the Sockets API.
Posix::PosixSocket
A lowlevel socket wrapper class.
Definition
posixsocket.h:33
Win32::Win32Socket
A lowlevel socket wrapper class.
Definition
win32socket.h:27
Net
Definition
debugmessage.h:20
posixsocket.h
__DeclareClass
#define __DeclareClass(type)
win32socket.h
code
foundation
net
socket
socket.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.