コード例 #1
0
ファイル: main.c プロジェクト: Evoludo/InsenseCompilerUnix
// Generated from: uk.ac.stand.cs.insense.compiler.unixCCgen.CompilationUnit::printMain
int main( int argc, char **argv ) {
	inceos_event_t op_status;// for exception handling
	DAL_assign( &serialiserMap,Construct_StringMap(  )  ) ;
	initializeSerializerFunctions(  ) ;
	initDALGlobalObjects(  ) ;
	initUnixGlobalObjects(  ) ;
// Generated from: uk.ac.stand.cs.insense.compiler.unixCCgen.Sequence::complete
	NetStringSenderPNTR networktest_glob = NULL;
	DAL_assign(&networktest_glob , component_create( Construct_NetStringSender0, sizeof( NetStringSenderStruct ) , 126, 0, NULL ) );
	component_yield(  ) ;
;


// Generated from: uk.ac.stand.cs.insense.compiler.unixCCgen.Connect::complete
	channel_bind( networktest_glob->input_comp,Keyboard_glob->output_comp ) ;
;


// Generated from: uk.ac.stand.cs.insense.compiler.unixCCgen.Connect::complete
	channel_bind( networktest_glob->output_comp,NetworkSend_glob->input_comp ) ;
;
	// End of sequence

	sem_wait( &can_exit  ) ;
	exit( 0 ) ;
}
コード例 #2
0
ファイル: libnet.c プロジェクト: luozy/evnet
int evnet_channelbind(void* c, pfn_msg_handler handler, unsigned int timeouts, void *pUser)
{
    return channel_bind((channel_t*)c, handler, timeouts, pUser);
}