Skip to content
Snippets Groups Projects
Commit a8dc031e authored by rswindell's avatar rswindell
Browse files

Fixed bind() call in last commit (variable name is "socket" not "sock").

parent 7590350b
Branches
Tags
No related merge requests found
......@@ -210,7 +210,7 @@ if(server==undefined || !server.length) {
printf("Connecting to %s port %d ...\r\n",server,port);
socket = new Socket();
//socket.debug=true;
sock.bind(0,server.interface_ip_address);
socket.bind(0,server.interface_ip_address);
if(!socket.connect(server,port)) {
printf("!Error %d connecting to %s port %d\r\n"
,socket.last_error,server,port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment