class documentation

class TestSocketWrapper(object):

View In Hierarchy

Utility class that opens a domain socket and cleans up as needed.

Method __init__ Constructor cleaning up variables to be used.
Method Create Creates a bound and ready socket, cleaning up in case of failure.
Method Destroy Destroys the socket and performs all necessary cleanup.
Instance Variable sock Undocumented
Instance Variable tmpdir Undocumented
def __init__(self):

Constructor cleaning up variables to be used.

def Create(self, max_connections=1):

Creates a bound and ready socket, cleaning up in case of failure.

Parameters
max_connections:intThe number of max connections allowed for the socket.
Returns
tuple of socket, stringThe socket object and the path to reach it with.
def Destroy(self):

Destroys the socket and performs all necessary cleanup.

sock =

Undocumented

tmpdir =

Undocumented