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) {