1
Fork 0
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:
Andreas Kling 2019-02-14 14:38:30 +01:00
parent 2f35e54f80
commit 77177dbb76
7 changed files with 57 additions and 5 deletions

View file

@ -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);