source/TCP.cpp
xiTCP * xiTCPListen::CreateOnSocket( const socketHandle_t _nativeHandle, addressInfo_s * const senderInfo, const uint8_t protocol ) {
	xiTCP * const self = new xiTCP( protocol );
	self->Accept( _nativeHandle, senderInfo );

	if ( self->status == STATUS_INVALID ) {
		delete( self );

		return nullptr;
	}
	
	self->Grab();

	return self;
}
/*
====================
xiTCPListen::CreateOnSocket

	Internally used to construct the listen socket
	The native handle is given to the method, as opposed to created by the method
====================
*/
:CreateOnSocket
Internally used to construct the listen socket
The native handle is given to the method, as opposed to created by the method
: CreateOnSocket Internally used to construct the listen socket The native handle is given to the method as opposed to created by the method
xiTCP * xiTCPListen::CreateOnSocket( const socketHandle_t _nativeHandle, addressInfo_s * const senderInfo, const uint8_t protocol ) {
	xiTCP * const self = new xiTCP( protocol );
	self->Accept( _nativeHandle, senderInfo );
	if ( self->status == STATUS_INVALID ) {
		delete( self );
		return nullptr;
	}
	self->Grab();
	return self;
}
xiTCP * xiTCPListen :: CreateOnSocket ( const socketHandle_t _nativeHandle , addressInfo_s * const senderInfo , const uint8_t protocol ) { xiTCP * const self = new xiTCP ( protocol ) ; self -> Accept ( _nativeHandle , senderInfo ) ; if ( self -> status == STATUS_INVALID ) { delete ( self ) ; return nullptr ; } self -> Grab ( ) ; return self ; }
xiTCPListen::CreateOnSocket
Internally used to construct the listen socket
The native handle is given to the method, as opposed to created by the method
xiTCPListen :: CreateOnSocket Internally used to construct the listen socket The native handle is given to the method as opposed to created by the method