source/Sources/AirPlayReceiverServer.c
static void
	_HijackHTTPServerConnections( HTTPServerRef	inHTTPServer, HTTPConnectionRef inHijacker )
{
	HTTPConnectionRef *	next;
	HTTPConnectionRef	conn;

	if( inHTTPServer )
	{
		next = &inHTTPServer->connections;
		while( ( conn = *next ) != NULL )
		{
			if( ( conn != inHijacker ) && _IsConnectionActive( conn ) )
			{
				aprs_ulog( kLogLevelNotice, "*** Hijacking connection %##a for %##a\n", &conn->peerAddr, &inHijacker->peerAddr );
				*next = conn->next;
				_DestroyConnection( conn );
			}
			else
			{
				next = &conn->next;
			}
		}
	}
}
//===========================================================================================================================
//	_HijackHTTPServerConnections
//
//	This function should be called on inServer->httpQueue.
//===========================================================================================================================
_HijackHTTPServerConnections
This function should be called on inServer->httpQueue.
_HijackHTTPServerConnections This function should be called on inServer - > httpQueue .
static void
	_HijackHTTPServerConnections( HTTPServerRef	inHTTPServer, HTTPConnectionRef inHijacker )
{
	HTTPConnectionRef *	next;
	HTTPConnectionRef	conn;
	if( inHTTPServer )
	{
		next = &inHTTPServer->connections;
		while( ( conn = *next ) != NULL )
		{
			if( ( conn != inHijacker ) && _IsConnectionActive( conn ) )
			{
				aprs_ulog( kLogLevelNotice, "*** Hijacking connection %##a for %##a\n", &conn->peerAddr, &inHijacker->peerAddr );
				*next = conn->next;
				_DestroyConnection( conn );
			}
			else
			{
				next = &conn->next;
			}
		}
	}
}
static void _HijackHTTPServerConnections ( HTTPServerRef inHTTPServer , HTTPConnectionRef inHijacker ) { HTTPConnectionRef * next ; HTTPConnectionRef conn ; if ( inHTTPServer ) { next = & inHTTPServer -> connections ; while ( ( conn = * next ) != NULL ) { if ( ( conn != inHijacker ) && _IsConnectionActive ( conn ) ) { aprs_ulog ( kLogLevelNotice , " \n " , & conn -> peerAddr , & inHijacker -> peerAddr ) ; * next = conn -> next ; _DestroyConnection ( conn ) ; } else { next = & conn -> next ; } } } }
_HijackHTTPServerConnections
This function should be called on inServer->httpQueue.
_HijackHTTPServerConnections This function should be called on inServer - > httpQueue .