protected void SocketBroadcastServer_ReceivedMessage(object sender, ReceiveMessageEventArgs e)
        {
            InvokeOnMainThread(() =>
                {
                    if (e.Message.Length > 0 && e.Message[0] == 1)
                    {
                        serverInfo.started = ServerInfoState.Started;

                        socketBroadcastClient.SendMessage(SerializationHelper.ToByteArray(serverInfo));
                    }
                });
        }
 protected void SocketServer_ReceivedMessage (object sender, ReceiveMessageEventArgs e)
 {
     AddMessage(string.Format("Host : {0} - Message : {1} ", e.Host.Address, Encoding.ASCII.GetString(e.Message)));
 }
        protected void SocketBroadcastServer_ReceivedMessage(object sender, ReceiveMessageEventArgs e)
        {
            InvokeOnMainThread(() =>
                {
                    var serverInfo = SerializationHelper.ToObject<ServerInfo>(e.Message);

                    if (serverInfo != null)
                    {
                        serverInfo.address = e.Host.Address;

                        if (serverInfo.started == ServerInfoState.Started)
                        {
                            if (serverList.SingleOrDefault(p => p.id == serverInfo.id) == null)
                            {
                                serverList.Add(serverInfo);
                            }
                        }
                        else
                        {
                            serverList.RemoveAll(p => p.id == serverInfo.id);
                        }

                        tblServerList.ReloadData();
                    }
                });
        }