Home | Trees | Index | Help |
---|
Package pyGlobus :: Module xio :: Class XioSocket |
|
XioBase
--+
|
XioSocket
GsiSocket
A simple socket interface similar to the Python socket API.
Provides the ability to make strongly authenticated connections using GSI. It supports several modes of authorization and provides optional integrity/privacy to the data.Method Summary | |
---|---|
Constructs an instance. | |
Closes the handles if they aren't closed already, then frees the memory associated with the handles if it was allocated | |
Blocking server-side TCP connection establishment. | |
binds the socket to a port | |
close the socket | |
Blocking TCP connection establishment. | |
Return a new socket object identical to the current one | |
Return the underlying file descriptor | |
Return the remote address | |
Return the local address | |
Return the value of the socket option To get a list of options available call getopts on the transport driver. | |
Return timeout or None | |
Creates a listening TCP socket. | |
Return the underlying file descriptor | |
blocking read call | |
Emulates socket.send -- writes a string over a socket | |
Emulates socket.sendall -- writes a complete string over a socket | |
Sets the socket to be blocking or not. | |
Set the options from the socket. | |
Sets a timeout for the socket | |
shutdown the reading, writing or both sides of the socket | |
Inherited from XioBase | |
Return the handle |
Method Details |
---|
__init__(self,
handle=None,
stack=None,
transport_driver=None)
|
__del__(self)
Closes the handles if they aren't closed already, then frees the
memory associated with the handles if it was allocated
|
accept(self)Blocking server-side TCP connection establishment.
|
bind(self, bind_tuple)binds the socket to a port Note: This does not follow the python socket semantics exactly, getsockopt does not return the (host,port) it was bound to until listen is called.
|
close(self)close the socket |
connect(self, addr)Blocking TCP connection establishment. connect a TCP socket on the specified host/port pair.
|
dup(self)Return a new socket object identical to the current one Not implemented |
fileno(self)Return the underlying file descriptor Not implemented |
getpeername(self)Return the remote address
|
getsockname(self)Return the local address |
getsockopt(self, optname)Return the value of the socket option To get a list of options available call getopts on the transport driver.
|
gettimeout(self)Return timeout or None |
listen(self, backlog)Creates a listening TCP socket. Creates a socket handle capable of accepting new TCP connections from other hosts or processes. In order to actually listen for connections, you must call either listen or register listen on this instance.
|
makefile(self)Return the underlying file descriptor Not implemented |
recv(self, buflen, data_desc=None)blocking read call
|
send(self, data, data_desc=None)Emulates socket.send -- writes a string over a socket
|
sendall(self, data, data_desc=None)Emulates socket.sendall -- writes a complete string over a socket
|
setblocking(self, flag)Sets the socket to be blocking or not.
|
setsockopt(self, optname, *value)Set the options from the socket. To get a list of options available call getopts on the transport driver.
|
settimeout(self, timeout)Sets a timeout for the socket |
shutdown(self, how)shutdown the reading, writing or both sides of the socket Not implemented |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Apr 4 14:32:56 2006 | http://epydoc.sf.net |