An application also can send and receive files without first establishing a connection. The xfConnectAndSend function can be used to expedite file transfers when there is a well-defined transfer task to perform.
The xfConnectAndSend function call can be used to make a connection, transfer one or more files, and terminate the connection. Using this function call simplifies file transfers, but the complete list of files to transfer must be known before calling the function.