source:
prextra/@ftp/active.m
@
147
Last change on this file since 147 was 113, checked in by bduin, 8 years ago | |
---|---|
File size: 427 bytes |
Line | |
---|---|
1 | function active(h) |
2 | % ACTIVE Change to active mode |
3 | % ACTIVE(FTP) changes the communication mode of FTP to active 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.enterLocalActiveMode; |
15 | |
16 | % There isn't an easier way to set the value of a StringBuffer. |
17 | h.passiveMode.setLength(0); |
18 | h.passiveMode.append('a'); |
Note: See TracBrowser
for help on using the repository browser.