openMSX
security
SocketStreamWrapper.hh
Go to the documentation of this file.
1
#ifndef SOCKET_STREAM_WRAPPER_HH
2
#define SOCKET_STREAM_WRAPPER_HH
3
4
#ifdef _WIN32
5
6
#include <winsock2.h>
7
#include "
SspiUtils.hh
"
8
9
namespace
openmsx
{
10
11
class
SocketStreamWrapper :
public
sspiutils::StreamWrapper
12
{
13
public
:
14
explicit
SocketStreamWrapper(SOCKET userSock);
15
16
uint32_t Read (
void
* buffer, uint32_t cb);
17
uint32_t Write(
void
* buffer, uint32_t cb);
18
19
private
:
20
SOCKET
sock;
21
};
22
23
}
// namespace openmsx
24
25
#endif
// _WIN32
26
27
#endif
// SOCKET_STREAM_WRAPPER_HH
SspiUtils.hh
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
openmsx::SOCKET
int SOCKET
Definition
Socket.hh:25
Generated on Sat Dec 21 2024 14:13:52 for openMSX by
1.9.8