Update functions to their respective methodmaps

This commit is contained in:
Arron Vinyard
2020-04-23 23:22:40 -04:00
committed by GitHub
parent 84b90e1083
commit c0ca4b2a2f
+2 -2
View File
@@ -22,9 +22,9 @@ public void OnPluginStart() {
// create a new tcp socket // create a new tcp socket
Socket socket = new Socket(SOCKET_TCP, OnSocketError); Socket socket = new Socket(SOCKET_TCP, OnSocketError);
// bind the socket to all interfaces, port 50000 // 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 // 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) { public void OnSocketIncoming(Socket socket, Socket newSocket, char[] remoteIP, int remotePort, any arg) {