private void GetFileOwners()
        {
            ConnectivityMessageProvider cmp = new ConnectivityMessageProvider(SocketResourcesManager.srm.ProvideBuffer());
            OutputMessage om = cmp.ProvideFileClientListRequest(fileId);

            ClientCommunicationCenter.commCenter.SendMessageTo(ApplicationLiveData.ald.ServerEndPoint, om);
        }
Пример #2
0
        private void TryEstablishConnection(int ep)
        {
            Debug.WriteLine("TryEstablishConnection: " + ep);
            ConnectivityMessageProvider cmp = new ConnectivityMessageProvider(SocketResourcesManager.srm.ProvideBuffer());
            OutputMessage msg = cmp.ProvideTryEstablishConnectionMessage(ep);

            ClientCommunicationCenter.commCenter.SendMessageTo(ApplicationLiveData.ald.ServerEndPoint, msg);
        }
Пример #3
0
        public void ConnectWithServer(object sender, EventArgs e)
        {
            ConnectivityMessageProvider cmp = new ConnectivityMessageProvider(SocketResourcesManager.srm.ProvideBuffer());
            OutputMessage msg = cmp.ProvideTryConnectRequest();

            ClientCommunicationCenter.commCenter.SendMessageTo(ApplicationLiveData.ald.ServerEndPoint, msg);
            Debug.WriteLine("Poksuavm se povezat");
        }