diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-25 14:49:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-25 14:52:35 +0100 |
commit | ceec1a7d38d4c8941dbf537b85bd50f0030ffbec (patch) | |
tree | 2b137c37ae0f331bb3626583a619a3175ef614d4 /Kernel/Net/Socket.h | |
parent | 9c6f7d3e7d2252ad2d51f2c7c7379cab867fa477 (diff) | |
download | serenity-ceec1a7d38d4c8941dbf537b85bd50f0030ffbec.zip |
AK: Make Vector use size_t for its size and capacity
Diffstat (limited to 'Kernel/Net/Socket.h')
-rw-r--r-- | Kernel/Net/Socket.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Net/Socket.h b/Kernel/Net/Socket.h index 1639e79d13..ca2ad471cc 100644 --- a/Kernel/Net/Socket.h +++ b/Kernel/Net/Socket.h @@ -99,7 +99,7 @@ public: virtual KResult bind(const sockaddr*, socklen_t) = 0; virtual KResult connect(FileDescription&, const sockaddr*, socklen_t, ShouldBlock) = 0; - virtual KResult listen(int) = 0; + virtual KResult listen(size_t) = 0; virtual void get_local_address(sockaddr*, socklen_t*) = 0; virtual void get_peer_address(sockaddr*, socklen_t*) = 0; virtual bool is_local() const { return false; } @@ -138,8 +138,8 @@ protected: KResult queue_connection_from(NonnullRefPtr<Socket>); - int backlog() const { return m_backlog; } - void set_backlog(int backlog) { m_backlog = backlog; } + size_t backlog() const { return m_backlog; } + void set_backlog(size_t backlog) { m_backlog = backlog; } virtual const char* class_name() const override { return "Socket"; } @@ -160,7 +160,7 @@ private: int m_domain { 0 }; int m_type { 0 }; int m_protocol { 0 }; - int m_backlog { 0 }; + size_t m_backlog { 0 }; SetupState m_setup_state { SetupState::Unstarted }; bool m_connected { false }; bool m_shut_down_for_reading { false }; |