mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel: Begin implementing UNIX domain sockets.
This commit is contained in:
parent
dc200923f2
commit
2f35e54f80
12 changed files with 177 additions and 1 deletions
23
Kernel/Socket.h
Normal file
23
Kernel/Socket.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/RetainPtr.h>
|
||||
|
||||
class Socket : public Retainable<Socket> {
|
||||
public:
|
||||
static RetainPtr<Socket> create(int domain, int type, int protocol, int& error);
|
||||
virtual ~Socket();
|
||||
|
||||
int domain() const { return m_domain; }
|
||||
int type() const { return m_type; }
|
||||
int protocol() const { return m_protocol; }
|
||||
|
||||
protected:
|
||||
Socket(int domain, int type, int protocol);
|
||||
|
||||
private:
|
||||
int m_domain { 0 };
|
||||
int m_type { 0 };
|
||||
int m_protocol { 0 };
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue