| e8555c89 Andy McCall |
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 |
} |
| 24 |
|
| 25 |
#endif |
| 26 |
|
| 27 |
#endif |