ftp-data g-cache
Simics Reference Manual  /  5 Classes  / 

ftp-service

Description

The ftp-service class implements a simple FTP server in the service node. There is no authentication, all user names and passwords will be accepted and give access to all files the Simics process may access. The most commonly used FTP commands are implemented such as RETR, STOR, PWD, CWD, CDUP, MODE, USER, PASS, TYPE, PASV, PORT, NOOP, STRU, LIST, NSLT and QUIT. Unimplemented features include IPv6, creation and deletion of directories and file deletion and renaming. ASCII transfers will handled as binary ones.

Interfaces Implemented

conf_object, log_object, tcp_service

Notifiers

cell-change
Notifier that is triggered after the object's cell was changed.
object-delete
Notifier that is triggered just before Simics object is deleted.
queue-change
Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.

Commands for this class

Attributes

tcp
Required attribute; read/write access; type: o
TCP layer. Must implement the tcp interface.
enabled
Optional attribute; read/write access; type: b
Set to true (default) if the FTP server will listen for connections on the IP addresses specified in the server_ip_list attribute.
server_ip_list
Required attribute; read/write access; type: [s*]
Server IPv4 addresses. Typically one for each interface of the service node. New addresses may be added at the end of the list, but removal is not supported.
ftp_helpers
Required attribute; read/write access; type: [oo]
FTP helper objects. One ftp-control object and one ftp-data object.
ftp_root_directory
Optional attribute; read/write access; type: s
The directory in which files read or written over FTP are located; the default is the current working directory. The client can read and write to any subdirectories of the root directory. The Simics search path is always used to locate files to read.
c_sessions
Optional attribute; read/write access; type: [[ssisi]*]
The active control sessions in the FTP service. The sub-entries for each session are: server IP address, client IP address, client port, current directory, dsession id.
d_sessions
Optional attribute; read/write access; type: [[bbbs|niisi]*]
The active data sessions in the FTP service. The sub-entries for each session are: passive mode, connected (in passive mode), write file name, file offset, write buffer size, directory listing, c_session id.

Provided By

ftp-service
ftp-data g-cache