fail2ban.client.csocket module

class fail2ban.client.csocket.CSocket(sock='/usr/local/var/run/fail2ban/fail2ban.sock', timeout=-1)

Bases: object

Methods

convert(m)

Convert every "unexpected" member of message to string

close

receive

send

settimeout

close()
static convert(m)

Convert every “unexpected” member of message to string

static receive(sock, nonblocking=False, timeout=None)
send(msg, nonblocking=False, timeout=None)
settimeout(timeout)