Virtual Method

PurpleProtocolServersend_raw

since: 3.0

Declaration [src]

gint
send_raw (
  PurpleProtocolServer* protocol_server,
  PurpleConnection* connection,
  const gchar* buf,
  gint len
)

Description [src]

Sends raw data over the protocol. This should only be called when you know the exact underlying protocol.

Available since: 3.0

Parameters

connection

Type: PurpleConnection

The PurpleConnection instance.

The data is owned by the caller of the function.
buf

Type: const gchar*

The raw protocol data to send.

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

Type: gint

The length of buf in bytes.

Return value

Type: gint

The number of bytes that was sent.