source: prextra/@ftp/pasv.m @ 142

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