source/TCP.cpp
xiTCP * xiTCPListen::Listen( addressInfo_s * const senderInfo ) {
	const int listenStatus = listen( nativeHandle, 1 );
	if ( !listenStatus ) {
		// worked, open connection
		xiTCP * const newConnection = CreateOnSocket( nativeHandle, senderInfo, protocolVer );

		return newConnection;
	} else {
		status = STATUS_ERROR;
	}

	return nullptr;
}
/*
====================
xiTCPListen::Listen

	Listens for incoming TCP connections
	Returns a new xiTCP socket for communicating on new connections
====================
*/
:Listen
Listens for incoming TCP connections
Returns a new xiTCP socket for communicating on new connections
: Listen Listens for incoming TCP connections Returns a new xiTCP socket for communicating on new connections
xiTCP * xiTCPListen::Listen( addressInfo_s * const senderInfo ) {
	const int listenStatus = listen( nativeHandle, 1 );
	if ( !listenStatus ) {
		xiTCP * const newConnection = CreateOnSocket( nativeHandle, senderInfo, protocolVer );
		return newConnection;
	} else {
		status = STATUS_ERROR;
	}
	return nullptr;
}
xiTCP * xiTCPListen :: Listen ( addressInfo_s * const senderInfo ) { const int listenStatus = listen ( nativeHandle , 1 ) ; if ( ! listenStatus ) { xiTCP * const newConnection = CreateOnSocket ( nativeHandle , senderInfo , protocolVer ) ; return newConnection ; } else { status = STATUS_ERROR ; } return nullptr ; }
xiTCPListen::Listen
Listens for incoming TCP connections
Returns a new xiTCP socket for communicating on new connections
xiTCPListen :: Listen Listens for incoming TCP connections Returns a new xiTCP socket for communicating on new connections
// worked, open connection