mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:05:08 +00:00
Kernel: Prepare Socket for becoming a File.
Make the Socket functions take a FileDescriptor& rather than a socket role throughout the code. Also change threads to block on a FileDescriptor, rather than either an fd index or a Socket.
This commit is contained in:
parent
9f633a1871
commit
03da7046bd
14 changed files with 118 additions and 115 deletions
|
@ -81,11 +81,6 @@ int UDPSocket::protocol_send(const void* data, int data_length)
|
|||
return data_length;
|
||||
}
|
||||
|
||||
KResult UDPSocket::protocol_connect(ShouldBlock)
|
||||
{
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
int UDPSocket::protocol_allocate_source_port()
|
||||
{
|
||||
static const word first_ephemeral_port = 32768;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue