Example #1
0
File: net.c Project: L3oV1nc3/VMGL
/**
 * The big boy -- call this function to see (non-blocking) if there is
 * any pending work.  If there is, the networking layer's "work received"
 * handler will be called, so this function only returns a flag.  Work
 * is assumed to be placed on queues for processing by the handler.
 */
int crNetRecv( void )
{
	int found_work = 0;

	if ( cr_net.use_tcpip )
		found_work += crTCPIPRecv();	
	if ( cr_net.use_udp )
		found_work += crUDPTCPIPRecv();
	if ( cr_net.use_file )
		found_work += crFileRecv();

	return found_work;
}
Example #2
0
/**
 * The big boy -- call this function to see (non-blocking) if there is
 * any pending work.  If there is, the networking layer's "work received"
 * handler will be called, so this function only returns a flag.  Work
 * is assumed to be placed on queues for processing by the handler.
 */
int crNetRecv(
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
        CRConnection *conn
#endif
        )
{
    int found_work = 0;

    if ( cr_net.use_tcpip )
        found_work += crTCPIPRecv();
#ifdef VBOX_WITH_HGCM
    if ( cr_net.use_hgcm )
        found_work += crVBoxHGCMRecv(
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
                    conn
#endif
                );
#endif
#ifdef SDP_SUPPORT
    if ( cr_net.use_sdp )
        found_work += crSDPRecv();
#endif
#ifdef IB_SUPPORT
    if ( cr_net.use_ib )
        found_work += crIBRecv();
#endif
    if ( cr_net.use_udp )
        found_work += crUDPTCPIPRecv();
    
    if ( cr_net.use_file )
        found_work += crFileRecv();

#ifdef GM_SUPPORT
    if ( cr_net.use_gm )
        found_work += crGmRecv();
#endif

#ifdef TEAC_SUPPORT
    if ( cr_net.use_teac )
        found_work += crTeacRecv();
#endif

#ifdef TCSCOMM_SUPPORT
    if ( cr_net.use_tcscomm )
        found_work += crTcscommRecv();
#endif

    return found_work;
}
Example #3
0
/**
 * The big boy -- call this function to see (non-blocking) if there is
 * any pending work.  If there is, the networking layer's "work received"
 * handler will be called, so this function only returns a flag.  Work
 * is assumed to be placed on queues for processing by the handler.
 */
int crNetRecv( void )
{
	int found_work = 0;

	if ( cr_net.use_tcpip )
		found_work += crTCPIPRecv();	
#ifdef SDP_SUPPORT
	if ( cr_net.use_sdp )
		found_work += crSDPRecv();
#endif
#ifdef IB_SUPPORT
	if ( cr_net.use_ib )
		found_work += crIBRecv();
#endif
	if ( cr_net.use_udp )
		found_work += crUDPTCPIPRecv();
	
	if ( cr_net.use_file )
		found_work += crFileRecv();

#ifdef GM_SUPPORT
	if ( cr_net.use_gm )
		found_work += crGmRecv();
#endif

#ifdef TEAC_SUPPORT
	if ( cr_net.use_teac )
		found_work += crTeacRecv();
#endif

#ifdef TCSCOMM_SUPPORT
	if ( cr_net.use_tcscomm )
		found_work += crTcscommRecv();
#endif

	return found_work;
}