circuits.net.sockets module
Socket Components
This module contains various Socket Components for use with Networking.
-
class circuits.net.sockets.Client(bind=None, bufsize=4096, channel='client')
Bases: circuits.core.components.BaseComponent
-
channel = 'client'
-
parse_bind_parameter(bind_parameter)
-
connected
-
close()
-
write(data)
-
class circuits.net.sockets.TCPClient(bind=None, bufsize=4096, channel='client')
Bases: circuits.net.sockets.Client
-
socket_family = 2
-
connect(host, port, secure=False, **kwargs)
-
class circuits.net.sockets.TCP6Client(bind=None, bufsize=4096, channel='client')
Bases: circuits.net.sockets.TCPClient
-
socket_family = 10
-
parse_bind_parameter(bind_parameter)
-
class circuits.net.sockets.UNIXClient(bind=None, bufsize=4096, channel='client')
Bases: circuits.net.sockets.Client
-
ready(component)
-
connect(path, secure=False, **kwargs)
-
class circuits.net.sockets.Server(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.core.components.BaseComponent
-
channel = 'server'
-
parse_bind_parameter(bind_parameter)
-
connected
-
host
-
port
-
close(sock=None)
-
write(sock, data)
-
class circuits.net.sockets.TCPServer(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.net.sockets.Server
-
socket_family = 2
-
parse_bind_parameter(bind_parameter)
-
circuits.net.sockets.parse_ipv4_parameter(bind_parameter)
-
circuits.net.sockets.parse_ipv6_parameter(bind_parameter)
-
class circuits.net.sockets.TCP6Server(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.net.sockets.TCPServer
-
socket_family = 10
-
parse_bind_parameter(bind_parameter)
-
class circuits.net.sockets.UNIXServer(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.net.sockets.Server
-
class circuits.net.sockets.UDPServer(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.net.sockets.Server
-
socket_family = 2
-
close()
-
write(address, data)
-
broadcast(data, port)
-
circuits.net.sockets.UDPClient
alias of UDPServer
-
class circuits.net.sockets.UDP6Server(bind, secure=False, backlog=5000, bufsize=4096, channel='server', **kwargs)
Bases: circuits.net.sockets.UDPServer
-
socket_family = 10
-
parse_bind_parameter(bind_parameter)
-
circuits.net.sockets.UDP6Client
alias of UDP6Server
-
circuits.net.sockets.Pipe(*channels, **kwargs)
Create a new full duplex Pipe
Returns a pair of UNIXClient instances connected on either side of
the pipe.