source:
prextra/@ftp/pasv.m
@
132
Last change on this file since 132 was 113, checked in by bduin, 8 years ago | |
---|---|
File size: 424 bytes |
Line | |
---|---|
1 | function pasv(h) |
2 | % PASV Change to passive mode |
3 | % PASV(FTP) changes the communication mode of FTP to passive mode. |
4 | |
5 | % Idin Motedayen-Aval |
6 | |
7 | % Make sure we're still connected. |
8 | connect(h) |
9 | |
10 | if (nargin ~= 1) |
11 | error('Incorrect number of arguments.') |
12 | end |
13 | |
14 | h.jobject.enterLocalPassiveMode; |
15 | |
16 | % There isn't an easier way to set the value of a StringBuffer. |
17 | h.passiveMode.setLength(0); |
18 | h.passiveMode.append('p'); |
Note: See TracBrowser
for help on using the repository browser.