public ClientController(RTPClientView reference) { //initialize message buffers to be 1 MB inMessage = new byte[1 * MB]; outMessage = new byte[1 * MB]; //add reference to view referenceToView = reference; encode = new ASCIIEncoding(); }
//add reference to the view public static void addReferenceToView(RTPClientView refToView) { referenceToView = refToView; }