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