From c534afecf9bd263728292a7da2ab966eef4884e7 Mon Sep 17 00:00:00 2001 From: m910q Date: Fri, 26 Aug 2022 19:42:16 +0200 Subject: [PATCH] Created overload for Socket.Listen() with address --- BeefLibs/corlib/src/Net/Socket.bf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/Net/Socket.bf b/BeefLibs/corlib/src/Net/Socket.bf index ef229cbe..02262092 100644 --- a/BeefLibs/corlib/src/Net/Socket.bf +++ b/BeefLibs/corlib/src/Net/Socket.bf @@ -339,7 +339,12 @@ namespace System.Net SetBlocking(mIsBlocking); } - public Result Listen(int32 port, IPv4Address address = .(127, 0, 0, 1), int32 backlog = 5) + public Result Listen(int32 port, int32 backlog = 5) + { + return Listen(.(127, 0, 0, 1), port, backlog); + } + + public Result Listen(IPv4Address address, int32 port, int32 backlog = 5) { Debug.Assert(mHandle == INVALID_SOCKET);