mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Created overload for Socket.Listen() with address
This commit is contained in:
parent
7d26c115bb
commit
c534afecf9
1 changed files with 6 additions and 1 deletions
|
@ -339,7 +339,12 @@ namespace System.Net
|
|||
SetBlocking(mIsBlocking);
|
||||
}
|
||||
|
||||
public Result<void> Listen(int32 port, IPv4Address address = .(127, 0, 0, 1), int32 backlog = 5)
|
||||
public Result<void> Listen(int32 port, int32 backlog = 5)
|
||||
{
|
||||
return Listen(.(127, 0, 0, 1), port, backlog);
|
||||
}
|
||||
|
||||
public Result<void> Listen(IPv4Address address, int32 port, int32 backlog = 5)
|
||||
{
|
||||
Debug.Assert(mHandle == INVALID_SOCKET);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue