Hey there,

I want to add my own function to libcod (win version). Its an udp socket communication stuff, and its working in a c console application. But after I copied source inside the dll source, there is no error I can compile it, its not working. Socket is fine I can store data on it from gsc and the other side get it, but the receiver function not working. i = recvfrom(Socket, response, strlen(response), 0, 0, 0); (Socket is the socket and the response is a char array)i value is -1 after the call (i should represent the number of the bytes received), like I sad the console app stuff working fine with the same source, so I guess the source is fine. Any idea?

Thanks in advance!