source: prextra/@ftp/active.m @ 153

Last change on this file since 153 was 113, checked in by bduin, 8 years ago
File size: 427 bytes
Line 
1function 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.
8connect(h)
9
10if (nargin ~= 1)
11    error('Incorrect number of arguments.')
12end
13
14h.jobject.enterLocalActiveMode;
15
16% There isn't an easier way to set the value of a StringBuffer.
17h.passiveMode.setLength(0);
18h.passiveMode.append('a');
Note: See TracBrowser for help on using the repository browser.