mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
IPv4: Split IPv4Socket::recvfrom() into packet/byte buffered functions
This code was really hard to follow since it handles two separate modes of buffering the data.
This commit is contained in:
parent
00d8ec3ead
commit
48f13f2a81
2 changed files with 45 additions and 33 deletions
|
@ -105,6 +105,9 @@ protected:
|
|||
private:
|
||||
virtual bool is_ipv4() const override { return true; }
|
||||
|
||||
ssize_t receive_byte_buffered(FileDescription&, void* buffer, size_t buffer_length, int flags, sockaddr*, socklen_t*);
|
||||
ssize_t receive_packet_buffered(FileDescription&, void* buffer, size_t buffer_length, int flags, sockaddr*, socklen_t*);
|
||||
|
||||
IPv4Address m_local_address;
|
||||
IPv4Address m_peer_address;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue