Method

PurpleXferstart

Declaration [src]

void
purple_xfer_start (
  PurpleXfer* xfer,
  int fd,
  const char* ip,
  guint16 port
)

Description [src]

Starts a file transfer.

Either fd must be specified or ip and port on a file receive transfer. On send, fd must be specified, and ip and port are ignored.

Passing fd as ‘-1’ is a special-case and indicates to the protocol to facilitate the file transfer itself.

Parameters

fd

Type: int

The file descriptor for the socket.

ip

Type: const char*

The IP address to connect to.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
port

Type: guint16

The port to connect to.