mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-30 08:11:01 +00:00
Handle listen/accept/send/receive in afd_endpoint
This commit is contained in:
@@ -14,8 +14,11 @@ namespace network
|
||||
virtual int get_last_error() = 0;
|
||||
|
||||
virtual bool is_ready(bool in_poll) = 0;
|
||||
virtual bool is_listening() = 0;
|
||||
|
||||
virtual bool bind(const address& addr) = 0;
|
||||
virtual bool listen(int backlog) = 0;
|
||||
virtual std::unique_ptr<i_socket> accept(address& address) = 0;
|
||||
|
||||
virtual sent_size send(std::span<const std::byte> data) = 0;
|
||||
virtual sent_size sendto(const address& destination, std::span<const std::byte> data) = 0;
|
||||
|
||||
Reference in New Issue
Block a user