Hedwig.Transports.TCP

TCP Socket connection

Summary

Functions

Checks if the connection is alive

Send data over the socket

Open a socket connection to the XMPP server

Callback implementation for Hedwig.Transport.stop/1

Upgrades the connection to TLS

Callback implementation for Hedwig.Transport.use_zlib/1

Types

t :: %Hedwig.Transports.TCP{transport: module, pid: pid, config: %{}, client: pid, socket: port, parser: term, ssl?: boolean, compress?: boolean}

Functions

connected?(conn)

Checks if the connection is alive.

get_transport(conn)

Callback implementation for Hedwig.Transport.get_transport/1.

reset_parser(conn)

Callback implementation for Hedwig.Transport.reset_parser/1.

send(conn, stanza)

Send data over the socket.

start(conn)

Open a socket connection to the XMPP server.

stop(conn)

Callback implementation for Hedwig.Transport.stop/1.

upgrade_to_tls(conn)

Upgrades the connection to TLS.

use_zlib(conn)

Callback implementation for Hedwig.Transport.use_zlib/1.