CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
win_net_socket.cxh
1#include <cx/net/socket.cxh>
2#include <cx/platform/win.h>
3
4// send() is a concrete method on the base NetSocket now (its logic is platform-independent; only the
5// syscall lives behind a shim), so this class no longer overrides it -- bind/listen still do, because
6// they touch sockaddr directly.
7class NetSocketWin extends NetSocket
8{
9 SOCKET sock;
10
11 override close;
12
13 [canfail] factory create(NetSocketType type);
14 factory wrap(SOCKET sock, NetSocketType type, NetSocketState state);
15 destroy();
16}