Connection

The Connection class represents a connection to a single Beanstalkd server. A Connection instance should not be shared between multiple tubes.

Constructors

this
this(Server server)

Constructor for the Connection class.

this
this(string host, ushort port)

Constructor for the Connection class.

Members

Functions

close
void close()

This function closes a connection if it is open.

getTube
Tube getTube(string name)

This function retrieves a Tube object from a Connection.

open
void open()

This function attempts to establish a connection to the server identified by a Connection objects settings.

Properties

isOpen
bool isOpen [@property getter]

This function is used to test whether a connection is open.

server
Server server [@property getter]

Getter for the server property.

socket
Socket socket [@property getter]

This function provides package level access to the Socket held within a Connection object. Asking for a socket before a Connection has been explicitly opened implies an implicit call to the open() function.

Meta