Init arftransfer, allocate stuff
Return: 0 or -1 on error
Clean arftransfer, deallocate stuff
Get last arftransfer error
Return: Error code
Get last arftransfer error as string
Return: Error string
Close socket
fd: Socket
Return: 0 or -1 on error
Send DATA block
fd: Socket
data: Data to send
size: Size of data
Return: 0 or -1 on error
Send CDATA gzip compressed block
fd: Socket
data: Data to deflate and send
size: Size of data
Return: 0 or -1 on error
Connect to host
host: Host to connect to
port: Port to connect to
Returns: Socket fd or -1
Do echo block and receive answer, measuring round trip time
fd: Socket
rtt: timespec to store round trip time
Return: 0 or -1 on error
Attempt login
fd: Socket
user: Username
passwd: Password
Returns: 0 or -1 on error
Get working directory Returns: 0 or -1 on error
List directory Returns: 0 or -1 on error
Change directory Returns: 0 or -1 on error
Get file. Returns: size of data or -1 on error
Put file. Returns: size of data or -1 on error
Returns: Nothing, immediately triggers TLS handshake