diff options
Diffstat (limited to 'Kernel/Net/Socket.h')
-rw-r--r-- | Kernel/Net/Socket.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Kernel/Net/Socket.h b/Kernel/Net/Socket.h index ff071d2d83..ebe42032a8 100644 --- a/Kernel/Net/Socket.h +++ b/Kernel/Net/Socket.h @@ -79,7 +79,7 @@ public: virtual bool is_local() const { return false; } virtual bool is_ipv4() const { return false; } virtual ErrorOr<size_t> sendto(OpenFileDescription&, UserOrKernelBuffer const&, size_t, int flags, Userspace<sockaddr const*>, socklen_t) = 0; - virtual ErrorOr<size_t> recvfrom(OpenFileDescription&, UserOrKernelBuffer&, size_t, int flags, Userspace<sockaddr*>, Userspace<socklen_t*>, Time&, bool blocking) = 0; + virtual ErrorOr<size_t> recvfrom(OpenFileDescription&, UserOrKernelBuffer&, size_t, int flags, Userspace<sockaddr*>, Userspace<socklen_t*>, Duration&, bool blocking) = 0; virtual ErrorOr<void> setsockopt(int level, int option, Userspace<void const*>, socklen_t); virtual ErrorOr<void> getsockopt(OpenFileDescription&, int level, int option, Userspace<void*>, Userspace<socklen_t*>); @@ -100,11 +100,11 @@ public: virtual ErrorOr<struct stat> stat() const override; virtual ErrorOr<NonnullOwnPtr<KString>> pseudo_path(OpenFileDescription const&) const override = 0; - bool has_receive_timeout() const { return m_receive_timeout != Time::zero(); } - Time const& receive_timeout() const { return m_receive_timeout; } + bool has_receive_timeout() const { return m_receive_timeout != Duration::zero(); } + Duration const& receive_timeout() const { return m_receive_timeout; } - bool has_send_timeout() const { return m_send_timeout != Time::zero(); } - Time const& send_timeout() const { return m_send_timeout; } + bool has_send_timeout() const { return m_send_timeout != Duration::zero(); } + Duration const& send_timeout() const { return m_send_timeout; } bool wants_timestamp() const { return m_timestamp; } @@ -173,8 +173,8 @@ private: SpinlockProtected<RefPtr<NetworkAdapter>, LockRank::None> m_bound_interface; - Time m_receive_timeout {}; - Time m_send_timeout {}; + Duration m_receive_timeout {}; + Duration m_send_timeout {}; int m_timestamp { 0 }; SpinlockProtected<Optional<ErrnoCode>, LockRank::None> m_so_error; |