if anyone is familiar with sockets how would i make a function that returns a socket? like what type would i define the function prototype as and stuff?
if anyone is familiar with sockets how would i make a function that returns a socket? like what type would i define the function prototype as and stuff?
no idea
I think this should work;
Code:SOCKET MyFunction(void){ }
from winsock.h
typedef unsigned int u_int;
typedef u_int SOCKET;
don't realy know much about sockets, started only 3 days ago