package protocol;

import java.io.Serializable;

public class Header implements Serializable {

	public Header(MsgType t) {
		type = t;
	}

	private static final long serialVersionUID = 1L;

	public enum MsgType {
		ACK_OK,
		ACK_ERROR,
		CONNECT, 
		QUIT_SESSION, 
		GET_TOPICS,
		TOPIC_ADR,
		LISTE_TOPICS,
		CREATE_TOPIC,
		JOIN_TOPIC,
		QUIT_TOPIC,
		POST_MSG,
		RECV_POST
	};
	
	public MsgType type;	
	// ID source  ??
	// ID destinataire ??
}
