function StartSocket()
{
Socket <- NewSocket("DataFunc");
Socket.Start(1234, 5);
}
function DataFunc(client, data)
{
print(client + ":" + "data");
}
I use this code to create a server. But when the client send a messase, the server crashed. What's the matter?
In the source code SocketInterfaces.cpp, line 250. (link (https://bitbucket.org/stormeus/0.4-sockets/src/4437c4c929ff348b1fd239d382e6ec2f9fe39e1d/SocketInterfaces.cpp?at=master#SocketInterfaces.cpp-250))
I change f(uc, (char*)p->data);
to f((int)uc, (char*)p->data);
It won't crash any more. Who can tell me what cause this bug?
And please fix it soon! :)
@Stormeus Please see this!