mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
IPv4: Mark UDP sockets as connected immediately upon connect()
This makes it possible to write() to a blocking UDPSocket. Previously this was not possible since can_write() depends on is_connected().
This commit is contained in:
@@ -111,6 +111,7 @@ int UDPSocket::protocol_send(const void* data, int data_length)
|
||||
KResult UDPSocket::protocol_connect(FileDescription&, ShouldBlock)
|
||||
{
|
||||
m_role = Role::Connected;
|
||||
set_connected(true);
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user