Skip to content

Commit

Permalink
wasi-sockets: various UDP adjustments (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Jan 23, 2024
1 parent f637555 commit 7c10d07
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 109 deletions.
5 changes: 4 additions & 1 deletion packages/preview2-shim/lib/io/calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export const SOCKET_TCP_IS_LISTENING = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_ACCEPT = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_GET_LOCAL_ADDRESS = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_GET_REMOTE_ADDRESS = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_SHUTDOWN = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_SET_KEEP_ALIVE = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_SET_LISTEN_BACKLOG_SIZE = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_SHUTDOWN = ++call_id << CALL_SHIFT;
export const SOCKET_TCP_DISPOSE = ++call_id << CALL_SHIFT;
// Udp
export const SOCKET_UDP_CREATE_HANDLE = ++call_id << CALL_SHIFT;
Expand All @@ -107,6 +107,9 @@ export const SOCKET_OUTGOING_DATAGRAM_STREAM_SEND = ++call_id << CALL_SHIFT;
export const SOCKET_DATAGRAM_STREAM_SUBSCRIBE = ++call_id << CALL_SHIFT;
export const SOCKET_DATAGRAM_STREAM_DISPOSE = ++call_id << CALL_SHIFT;

export const SOCKET_GET_DEFAULT_SEND_BUFFER_SIZE = ++call_id << CALL_SHIFT;
export const SOCKET_GET_DEFAULT_RECEIVE_BUFFER_SIZE = ++call_id << CALL_SHIFT;

// Name lookup
export const SOCKET_RESOLVE_ADDRESS_CREATE_REQUEST = ++call_id << CALL_SHIFT;
export const SOCKET_RESOLVE_ADDRESS_TAKE_REQUEST = ++call_id << CALL_SHIFT;
Expand Down
Loading

0 comments on commit 7c10d07

Please sign in to comment.