From c0ca4b2a2f5855e5d2ed54526b43d9b53cfa2fcb Mon Sep 17 00:00:00 2001 From: Arron Vinyard Date: Thu, 23 Apr 2020 23:22:40 -0400 Subject: [PATCH] Update functions to their respective methodmaps --- examples/listenexample.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/listenexample.sp b/examples/listenexample.sp index ff1a56c..463a53e 100644 --- a/examples/listenexample.sp +++ b/examples/listenexample.sp @@ -22,9 +22,9 @@ public void OnPluginStart() { // create a new tcp socket Socket socket = new Socket(SOCKET_TCP, OnSocketError); // bind the socket to all interfaces, port 50000 - SocketBind(socket, "0.0.0.0", 50000); + socket.Bind("0.0.0.0", 50000); // let the socket listen for incoming connections - SocketListen(socket, OnSocketIncoming); + socket.Listen(OnSocketIncoming); } public void OnSocketIncoming(Socket socket, Socket newSocket, char[] remoteIP, int remotePort, any arg) {