mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
Kernel: Begin fleshing out bind() syscall.
This commit is contained in:
parent
2f35e54f80
commit
77177dbb76
7 changed files with 57 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/RetainPtr.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
|
||||
class Socket : public Retainable<Socket> {
|
||||
public:
|
||||
|
@ -12,6 +13,8 @@ public:
|
|||
int type() const { return m_type; }
|
||||
int protocol() const { return m_protocol; }
|
||||
|
||||
virtual bool bind(const sockaddr*, socklen_t, int& error) = 0;
|
||||
|
||||
protected:
|
||||
Socket(int domain, int type, int protocol);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue