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?
This is a discussion on returning functions w/ sockets within the Windows Programming forums, part of the Platform Specific Boards category; if anyone is familiar with sockets how would i make a function that returns a socket? like what type would ...
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
SVG is the future