1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

Kernel: Actually send things between the socket endpoints.

This commit is contained in:
Andreas Kling 2019-02-14 16:01:08 +01:00
parent b20a7aca61
commit eb1c721ef3
5 changed files with 53 additions and 3 deletions

View file

@ -14,6 +14,11 @@ public:
virtual RetainPtr<Socket> connect(const sockaddr*, socklen_t, int& error) override;
virtual bool get_address(sockaddr*, socklen_t*) override;
virtual bool can_read(SocketRole) const override;
virtual ssize_t read(SocketRole, byte*, size_t) override;
virtual ssize_t write(SocketRole, const byte*, size_t) override;
virtual bool can_write(SocketRole) const override;
private:
explicit LocalSocket(int type);
virtual bool is_local() const override { return true; }