Sha256: 857f897a7ad829ebb84ca5f2dfe97ced4761d5b1633bcb633251e3fe6ff89677

Contents?: true

Size: 749 Bytes

Versions: 2

Compression:

Stored size: 749 Bytes

Contents

package com.game_machine.core;

import java.net.InetSocketAddress;

import GameMachine.Messages.ClientMessage;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;

public class NetMessage {

	// Protocols
	public static final int UDP = 0;
	public static final int UDT = 1;
	public static final int TCP = 2;

	public byte[] bytes;
	public ByteBuf buf;
	public ClientMessage clientMessage;
	public final String host;
	public final int port;
	public final int protocol;
	public final ChannelHandlerContext ctx;
	public InetSocketAddress address;

	public NetMessage(int protocol, String host, int port, ChannelHandlerContext ctx) {
		this.host = host;
		this.port = port;
		this.protocol = protocol;
		this.ctx = ctx;
	}
	
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
game_machine-1.0.4 java/project/src/main/java/com/game_machine/core/NetMessage.java
game_machine-1.0.2 java/project/src/main/java/com/game_machine/core/NetMessage.java