telnetd/FkUG.cpp
// AcceptConnection opens a connection to the client
//
// Parameters:
//   skOut - an open socket
//
// Return value:
//   TRUE upon successful accept, FALSE otherwise
AcceptConnection opens a connection to the client
Parameters:
skOut - an open socket

Return value:
TRUE upon successful accept, FALSE otherwise
AcceptConnection opens a connection to the client Parameters : skOut - an open socket Return value : TRUE upon successful accept FALSE otherwise
BOOL AcceptConnection(SOCKET *skOut)
{
    struct sockaddr sad;
    int len = sizeof(sad);
	 BOOL isOK=TRUE;
    *skOut = accept(skListen, &sad, &len);
    if (*skOut == INVALID_SOCKET) {
        isOK=FALSE;
    }
	 return isOK;
}
BOOL AcceptConnection ( SOCKET * skOut ) { struct sockaddr sad ; int len = sizeof ( sad ) ; BOOL isOK = TRUE ; * skOut = accept ( skListen , & sad , & len ) ; if ( * skOut == INVALID_SOCKET ) { isOK = FALSE ; } return isOK ; }
AcceptConnection opens a connection to the client
Parameters:
skOut - an open socket
AcceptConnection opens a connection to the client Parameters : skOut - an open socket
// Get connection request //LogWSError();