Created AC35 Streaming server

- Sends heartbeat messages every 5 seconds
- Sends XML at beginning

Tags: #story[29]
This commit is contained in:
Michael Rausch
2017-04-19 19:05:19 +12:00
parent 34872a822b
commit edc306da22
12 changed files with 783 additions and 0 deletions
@@ -0,0 +1,31 @@
package seng302.server.messages;
import java.io.DataOutputStream;
public abstract class Message {
Header header;
/**
* @param header Set the header for this message
*/
public void setHeader(Header header){
this.header = header;
}
/**
* @return the header specified for this message
*/
public Header getHeader(){
return header;
}
/**
* @return the size of the message
*/
public abstract int getSize();
/**
* Send the message as through the outputStream
*/
public abstract void send(DataOutputStream outputStream);
}