openMSX
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
9namespace openmsx {
10
11class SocketStreamWrapper : public sspiutils::StreamWrapper
12{
13public:
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
19private:
20 SOCKET sock;
21};
22
23} // namespace openmsx
24
25#endif // _WIN32
26
27#endif // SOCKET_STREAM_WRAPPER_HH
This file implemented 3 utility functions:
Definition Autofire.cc:11
int SOCKET
Definition Socket.hh:25