FtpSocket class
Constructors
- FtpSocket({required FtpSocketInitOptions options, LogCallback? logCallback})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportIPv6 ↔ bool
-
getter/setter pair
- transferMode ↔ FtpTransferMode
-
getter/setter pair
- transferType → FtpTransferType
-
no setter
Methods
-
connect(
String user, String pass, {String? account}) → Future< void> - Connect to the FTP Server with given credentials
-
copy(
) → FtpSocket -
disconnect(
{bool safe = true}) → Future< void> - Closes the connection
-
flush(
) → Future< void> - Flush the response from the server
-
isConnected(
) → Future< bool> - verify that socket is connected and server send response
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openTransferChannel<
T> (TransferChannelCallback doStuff, [TransferFailCallback? onFail]) → Future< T> -
read(
) → Future< FtpResponse> - Fetch the response from the server
-
setTransferType(
FtpTransferType type) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String message, {bool command = true}) → void - Send message to the server
-
writeAndRead(
String message) → Future< FtpResponse> - Send message to the server and fetch the response
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited