diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 15:55:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 15:55:19 +0100 |
commit | b20a7aca612b705e47fc15d1b1c9b864c6acda61 (patch) | |
tree | 81cc870f8ea5d9557ef0ea562272d8949d61f1cf /Kernel/Socket.h | |
parent | b12ab1270a8605e7f095be18facbed3f40da7a9c (diff) | |
download | serenity-b20a7aca612b705e47fc15d1b1c9b864c6acda61.zip |
Kernel: More work on sockets. Fleshing out connect().
Diffstat (limited to 'Kernel/Socket.h')
-rw-r--r-- | Kernel/Socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Socket.h b/Kernel/Socket.h index d5e91cfb52..2afd6a53f2 100644 --- a/Kernel/Socket.h +++ b/Kernel/Socket.h @@ -23,7 +23,9 @@ public: bool listen(int backlog, int& error); virtual bool bind(const sockaddr*, socklen_t, int& error) = 0; + virtual RetainPtr<Socket> connect(const sockaddr*, socklen_t, int& error) = 0; virtual bool get_address(sockaddr*, socklen_t*) = 0; + virtual bool is_local() const { return false; } protected: Socket(int domain, int type, int protocol); |