mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user