Module sys/tcp

sys/tcp

Async TCP socket operations.

Provides TCP socket wrappers around the low-level C runtime externs. Uses the socket address helpers to construct sockaddr_in/sockaddr_in6 buffers.

All async operations return IoFuture which resolves to:

  • Positive value: success (fd for socket/accept, bytes for send/recv, 0 for others)
  • Negative value: -errno on failure