mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Kernel: More work on sockets. Fleshing out connect().
This commit is contained in:
parent
b12ab1270a
commit
b20a7aca61
7 changed files with 90 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue