summaryrefslogtreecommitdiff
path: root/Kernel/Net/Socket.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
commit90b1354688e988ba1311a5645f631d353fa7ff80 (patch)
tree5619e16c34d3f2f9142c270e2a906614a6d598a6 /Kernel/Net/Socket.h
parent77b9fa89dd36fcd56d956667a956ef7f2ee8f963 (diff)
downloadserenity-90b1354688e988ba1311a5645f631d353fa7ff80.zip
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
Diffstat (limited to 'Kernel/Net/Socket.h')
-rw-r--r--Kernel/Net/Socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Net/Socket.h b/Kernel/Net/Socket.h
index ff129f8e54..af9e257a37 100644
--- a/Kernel/Net/Socket.h
+++ b/Kernel/Net/Socket.h
@@ -25,7 +25,7 @@ class FileDescription;
class Socket : public File {
public:
- static KResultOr<Retained<Socket>> create(int domain, int type, int protocol);
+ static KResultOr<NonnullRefPtr<Socket>> create(int domain, int type, int protocol);
virtual ~Socket() override;
int domain() const { return m_domain; }
@@ -33,7 +33,7 @@ public:
int protocol() const { return m_protocol; }
bool can_accept() const { return !m_pending.is_empty(); }
- RetainPtr<Socket> accept();
+ RefPtr<Socket> accept();
bool is_connected() const { return m_connected; }
KResult listen(int backlog);
@@ -89,14 +89,14 @@ private:
timeval m_receive_deadline { 0, 0 };
timeval m_send_deadline { 0, 0 };
- Vector<RetainPtr<Socket>> m_pending;
+ Vector<RefPtr<Socket>> m_pending;
};
class SocketHandle {
public:
SocketHandle() {}
- SocketHandle(RetainPtr<Socket>&& socket)
+ SocketHandle(RefPtr<Socket>&& socket)
: m_socket(move(socket))
{
if (m_socket)
@@ -126,5 +126,5 @@ public:
const Socket& socket() const { return *m_socket; }
private:
- RetainPtr<Socket> m_socket;
+ RefPtr<Socket> m_socket;
};