Home | Trees | Index | Help |
---|
Package pyGlobus :: Module xio :: Class XioSocket |
|
A simple socket interface similar to the Python Socket API.
Provides the ability to make strongly authenticated connetions using GSI. It supports several modes of authorization and provides optional integrity/privacy to the data.Method Summary | |
---|---|
Constructs an instance. | |
__del__(self)
| |
Blocking server-side TCP connection establishment. | |
Close this socket, if there are no open XIOFile objects using it. | |
Blocking TCP connection establishment. | |
Creates a listening TCP socket. | |
get_handle(self)
| |
getpeername(self)
| |
getsockname(self)
| |
Block until a client connection is pending. | |
blocking read call | |
blocking write call | |
sendall(self,
data)
| |
Sets a timeout for the socket |
Method Details |
---|
__init__(self,
handle=None)
|
accept(self)Blocking server-side TCP connection establishment.
|
close(self)Close this socket, if there are no open XIOFile objects using it. |
connect(self, host, port)Blocking TCP connection establishment. Connect a TCP socket on the specified host/port pair.
|
create_listener(self, port=0, backlog=-1)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.
|
listen(self)Block until a client connection is pending. This method will block until a connection is pending. Once this method returns, accept may be called to return a new GSITCPSocket object. |
read(self, buffer, waitForBytes=1, data=None)blocking read call
|
send(self, writeString)blocking write call
|
settimeout(self, timeout)Sets a timeout for the socket |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Mar 30 12:38:31 2005 | http://epydoc.sf.net |