Well, when I create a socket. it works. But when I disconnect and re-create it, it crashes the server. Am I doing something wrong, or the Sockets are bugged?
Here's the code I tried:-
function nub(){
Socket <- NewSocket("dafuq");
Socket.Connect( 127.0.0.1, 81 );
}
function dafuq(data){
print(data)
}
function dconnect(){
print("haha");
Socket.Delete();
print("haha2");
nub();
}
//Then I executed this all:-
nub();
NewTimer("dconnect",2000,1);
//But it crashed my server
Quote from: KAKAN on Jan 27, 2016, 01:06 PM...the Sockets are bugged?
My money is on that. There are some bugs left from porting the module from LU.
Quote from: KAKAN on Jan 27, 2016, 01:06 PM...Am I doing something wrong,...
But that doesn't mean this isn't possible.