CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
wasm_net.h
1
#pragma once
2
3
#include <cx/net/net_private.h>
4
#include <cx/platform/wasm.h>
5
#include <
cx/buffer/buffer.h
>
6
7
#include <sys/socket.h>
8
9
bool
netAddrToSockaddr(_In_
const
NetAddr
* addr, _Out_
struct
sockaddr_storage* sa,
10
_Out_
int
* sasz);
11
17
bool
netAddrFromSockaddr(_Out_
NetAddr
* addr, _In_
const
struct
sockaddr* sa);
18
19
// No NetPlatIov/netIovToPlatform here, unlike unix_net.h/win_net.h: this backend does not use
20
// writev()/WSASend() scatter/gather at all (see netSockSendv() in wasm_net.c) -- one send() call
21
// per BufIov entry, so there is no platform vector type to translate into. net_private.h's default
22
// NET_MAX_IOV (64) is left alone; it only bounds how many BufIov entries socket.c gathers before
23
// calling netSockSendv(), which this backend's loop handles regardless of the count.
buffer.h
Simple buffer management.
NetAddr
Definition
net_shared.h:283
cx
platform
wasm
wasm_net.h
Generated by
1.9.8