private void GetFileOwners() { ConnectivityMessageProvider cmp = new ConnectivityMessageProvider(SocketResourcesManager.srm.ProvideBuffer()); OutputMessage om = cmp.ProvideFileClientListRequest(fileId); ClientCommunicationCenter.commCenter.SendMessageTo(ApplicationLiveData.ald.ServerEndPoint, om); }
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); }
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"); }