Home | Trees | Index | Help |
---|
Package pyGlobus :: Module io :: Class GSITCPSocket |
|
IOBase
--+
|
GSITCPSocket
A simple socket interface to secure Globus IO.
Provides the ability to make strongly authenticated connetions using GSI. It supports several modes of authorization and provides optional integrity/privacy to the data.pyGlobus.io.IOBaseException
Method Summary | |
---|---|
Constructs an instance. | |
Destroys an instance. | |
Blocking server-side TCP connection establishment. | |
Accept a credential from a remote entity | |
Close this socket, if there are no open GSIFile objects using it. | |
Blocking TCP connection establishment. | |
Create a TCP server socket. | |
Return the delegated credential. | |
Return the local IP and port. | |
Return the remote IP and port. | |
Return the GSS security context. | |
Delegate a credential to a remote entity. | |
Block until a client connection is pending. | |
Create a GSIFile object from the socket. | |
Asynchronous server-side TCP connection establishment. | |
Asynchronous TCP connection establishment. | |
Asynchronous wait until a client connection is pending. | |
Emulates socket.send -- writes a string out over the socket. | |
Emulates socket.send -- writes a string out over the socket. | |
This should emulate socket.shutdown -- currently, this routine does nothing (it's simply here as a placeholder). | |
Inherited from IOBase | |
Cancel any outstanding operation registered to this IOBase. | |
######################################################################### # Free's the underlying memory allocated for the callback structure. | |
######################################################################## # XXX This handle is only valid as long as this object exists. | |
Blocking TCP or file read | |
Asynchronously close the file or connection. | |
Asynchronous TCP or file read. | |
Asynchronous TCP or file write. | |
Nonblocking TCP or file read | |
Nonblocking TCP or file write | |
Blocking TCP or file write. |
Method Details |
---|
__init__(self,
handle=None)
|
__del__(self)
Destroys an instance.
|
accept(self, attr)Blocking server-side TCP connection establishment.
|
accept_delegation(self, oids, buffers, time_req)Accept a credential from a remote entity oids is the set of extension oids to add to the credential buffers is the set of extension values (must correspond to oids) time_req is the requested credential lifetime, in seconds.
|
close(self)Close this socket, if there are no open GSIFile objects using it.
|
connect(self, host, port, attr)Blocking TCP connection establishment. Connect a TCP socket on the specified host/port pair.
|
create_listener(self, attr, port=0, backlog=-1)Create a TCP server 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.
|
get_delegated_credential(self)Return the delegated credential.
|
get_local_address(self)Return the local IP and port.
|
get_remote_address(self)Return the remote IP and port.
|
get_security_context(self)Return the GSS security context.
|
init_delegation(self, cred, oids, buffers, time_req)Delegate a credential to a remote entity. cred is the credential to delegate oids is the set of extension oids to add to the credential buffers is the set of extension values (must correspond to oids) time_req is the requested credential lifetime, in seconds. |
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.
|
makefile(self, mode='r', bufsize=0)Create a GSIFile object from the socket. Note: unlike socket.makefile, this routine does NOT dup the socket. |
register_accept(self, attr, callback, arg)Asynchronous server-side TCP connection establishment. Once the connection has been accepted, the callback function will be called, with the arg and a newly created, connected, handle argument passed to the callback.
|
register_connect(self, host, port, attr, callback, arg)Asynchronous TCP connection establishment. Connect a TCP socket on the specified host/port pair. The connection will be started by this function, and a callback will be invoked when the connection is established.
|
register_listen(self, callback, arg)Asynchronous wait until a client connection is pending. The method will issue a callback when a connection is pending.
|
send(self, str)Emulates socket.send -- writes a string out over the socket. |
sendall(self, str)Emulates socket.send -- writes a string out over the socket. |
shutdown(self, how)This should emulate socket.shutdown -- currently, this routine does nothing (it's simply here as a placeholder). |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Apr 4 14:32:53 2006 | http://epydoc.sf.net |