Mount Fuji Engine  0.8b
MFSocket MFSockets_Accept ( MFSocket  socket,
MFSocketAddress pConnectingSocketAddress 
)

Permits an incoming connection attempt on a socket.

Parameters
socketDescriptor identifying a socket that has been placed in a listening state with the listen function. The connection is actually made with the socket that is returned by MFSockets_Accept().
pConnectingSocketAddressOptional pointer to a buffer that receives the address of the connecting entity, as known to the communications layer. The exact format of the pConnectingSocketAddress parameter is determined by the address family that was established when the socket from the MFSocketAddress structure was created.
Returns
If no error occurs, MFSockets_Accept() returns a value of type MFSocket that is a descriptor for the new socket. This returned value is a handle for the socket on which the actual connection is made.