s.s.socket : class documentation

Part of samba.socket_wrapper View In Hierarchy

socket(family, type, proto) -> socket object

Open a socket of the give type.

Method shutdown shutdown(how)
Method gettimeout gettimeout() -> value
Method setsockopt setsockopt(level, option, value)
Method accept accept() -> (socket object, address info)
Method connect connect(address)
Method getsockname getsockname() -> address info
Method close close()
Method __new__ T.__new__(S, ...) -> a new object with type S, a subtype of T
Method connect_ex connect_ex(address)
Method makefile makefile() -> file object
Method send send(data, flags)
Method write write(data)
Method dup dup() -> socket object
Method listen listen(backlog)
Method dup2 dup2(socket object) -> socket object
Method read read(buflen) -> data
Method getpeername getpeername() -> address info
Method recv recv(buflen, flags) -> data
Method setblocking setblocking(flag)
Method getsockopt getsockopt(level, option[, buffersize]) -> value
Method fileno fileno() -> file descriptor
Method bind bind(address)
Method recvfrom recvfrom(buflen, flags) -> (data, sender address)
Method sendto sendto(data, flags, addr)
Method sendall sendall(data, flags)
Method settimeout settimeout(value)
def shutdown():
shutdown(how)

Shut down one or both halves of the connection.

def gettimeout():
gettimeout() -> value

Return the timeout in seconds associated with socket operations.

def setsockopt():
setsockopt(level, option, value)

Set a socket option.

def accept():
accept() -> (socket object, address info)

Wait for an incoming connection.

def connect():
connect(address)

Connect the socket to a remote address.

def getsockname():
getsockname() -> address info

Return the address of the local endpoing.

def close():
close()

Close the socket.

def __new__():
T.__new__(S, ...) -> a new object with type S, a subtype of T
def connect_ex():
connect_ex(address)

Connect the socket to a remote address.

def makefile():
makefile() -> file object

Return a file object associated with the socket.

def send():
send(data, flags)

Send data.

def write():
write(data)

Send data.

def dup():
dup() -> socket object

Return a new socket object connected to the same system resource.

def listen():
listen(backlog)

Enable a server to accept connections.

def dup2():
dup2(socket object) -> socket object

Return a new socket object connected to teh same system resource.

def read():
read(buflen) -> data

Receive data.

def getpeername():
getpeername() -> address info

Return the address of the remote endpoint.

def recv():
recv(buflen, flags) -> data

Receive data.

def setblocking():
setblocking(flag)

Set blocking or non-blocking mode of the socket.

def getsockopt():
getsockopt(level, option[, buffersize]) -> value

Get a socket option.

def fileno():
fileno() -> file descriptor

Return socket's file descriptor.

def bind():
bind(address)

Bind the socket to a local address.

def recvfrom():
recvfrom(buflen, flags) -> (data, sender address)

Receive data and sender's address.

def sendto():
sendto(data, flags, addr)

Send data to a given address.

def sendall():
sendall(data, flags)

Send data.

def settimeout():
settimeout(value)

Set a timeout on socket blocking operations.

API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.