示例#1
0
        private void SendListContentsReq()
        {
            mCurrentDirectoryEditor.Text = mCurrentDirectory;
            ListContentsReq req = new ListContentsReq();

            req.DriverOrDirectoryPath = mCurrentDirectory;
            mClient.SendRequest(ProtocolTypes.TYPE_LIST_CONTENTS, req);
        }
示例#2
0
        private void OnConnectSucceed(object sender, ConnectSucceedArgs e)
        {
            LogEvent("连接成功!");
            mClient = new RemoteExplorerClient(mConnector);
            mClient.SetForm(this);
            mClient.setOnResponseReceivedHandler(OnOutputReceived);
            mClient.SetOnConnectionErrorHandler(OnConnectionError);
            mClient.BeginReceiveResponse(true);
            PutContentReq req = new PutContentReq();

            mClient.SendRequest(ProtocolTypes.TYPE_PUT_CONTENT, req);
            LogEvent("正在请求上传文件...");
        }