Remove socket IO mode (nonblock unnecessary with pre-checked recv buffer)

This commit is contained in:
Ian Gulliver
2026-04-10 21:45:43 +09:00
parent 0d41f63533
commit c961499239
3 changed files with 0 additions and 20 deletions

View File

@@ -29,11 +29,6 @@ enum class sock_flag : uint8_t {
none = 0,
};
enum class sock_io_mode : uint8_t {
block = 0,
nonblock = 1,
};
enum intr_kind : uint32_t {
ik_pppoe_terminated = (1 << 0), ik_dest_unreach = (1 << 1), ik_ip_conflict = (1 << 2),
ik_dest_unreach6 = (1 << 4), ik_wol = (1 << 7), ik_net_all = 0x97,
@@ -58,7 +53,6 @@ std::expected<socket_id, sock_error> open_socket(socket_id sn, protocol proto, s
std::expected<uint16_t, sock_error> send(socket_id sn, std::span<const uint8_t> buf);
std::expected<uint16_t, sock_error> recv(socket_id sn, std::span<uint8_t> buf);
std::expected<void, sock_error> set_socket_io_mode(socket_id sn, sock_io_mode mode);
uint16_t get_socket_recv_buf(socket_id sn);
} // namespace w6300