public void Startup()
        {
            //Initialize
            _client = new TCPClient();
            _messageManager = new MessageManager();

            _client.MessageReceiveDelegate = _messageManager;
            _messageManager.setTCPClient(_client);

            //Connect and register with server
            _client.Connect("10.211.55.3", 6666);

            RegisterMediaConsumerTask registertask = new RegisterMediaConsumerTask(_messageManager);
            registertask.Exectute();
        }
 public RespondImageReceiveRequestTask(MessageManager messageManager, int imageSizeInBytes)
 {
     _messageManager = messageManager;
     _imageSizeInBytes = imageSizeInBytes;
 }
 public RegisterMediaConsumerTask(MessageManager messageManager)
 {
     _messageManager = messageManager;
 }