Пример #1
0
	public void sendMsg( GameNetMessage.NetMsgInterface msg )
	{
		byte[] b = GameDefine.structToBytes( msg );
		oBuffer.write ( b );
	}
Пример #2
0
	bool	sendMsgBlock( GameNetMessage.NetMsgInterface msg )
	{
		socket.Blocking = true;

		byte[] b = GameDefine.structToBytes( msg );

		int count = socket.Send( b );
		
		if ( count < 0 )
		{
			return false;
		}
		
		return true;
	}