// ---- auto generated by YInG - the YAC interface generator (Sun, 17/Aug/2014 15:57:25)
#ifndef __YAC__network_h__
#define __YAC__network_h__

sUI                                          clid_IPAddress;
YAC_Template <_IPAddress>                      *t_IPAddress;
sUI                                          clid_Network;
YAC_STemplate<_Network>                        *t_Network;
sUI                                          clid_TCPSocket;
YAC_Template <_TCPSocket>                      *t_TCPSocket;
sUI                                          clid_UDPPacket;
YAC_Template <_UDPPacket>                      *t_UDPPacket;
sUI                                          clid_UDPSocket;
YAC_Template <_UDPSocket>                      *t_UDPSocket;

void YAC_CALL YAC_Init_network(YAC_Host *_host) {
	// --------------------------------- classes ---------------------------------
	   t_IPAddress                =new YAC_Template <_IPAddress>(_host);
	clid_IPAddress                =                t_IPAddress->ctemplate.class_ID;
	   t_Network                  =new YAC_STemplate<_Network>(_host);
	clid_Network                  =                t_Network->ctemplate.class_ID;
	   t_TCPSocket                =new YAC_Template <_TCPSocket>(_host);
	clid_TCPSocket                =                t_TCPSocket->ctemplate.class_ID;
	   t_UDPPacket                =new YAC_Template <_UDPPacket>(_host);
	clid_UDPPacket                =                t_UDPPacket->ctemplate.class_ID;
	   t_UDPSocket                =new YAC_Template <_UDPSocket>(_host);
	clid_UDPSocket                =                t_UDPSocket->ctemplate.class_ID;
	// -------------------------------- functions --------------------------------

}

void YAC_CALL YAC_Exit_network(YAC_Host *_host) {
	delete t_IPAddress;
	delete t_Network;
	delete t_TCPSocket;
	delete t_UDPPacket;
	delete t_UDPSocket;
}

#endif
