Package pyGlobus :: Module xio :: Class GsiSocket
[show private | hide private]
[frames | no frames]

Class GsiSocket

XioBase --+    
          |    
  XioSocket --+
              |
             GsiSocket


Class that has a python socket interface, but uses GSI for authentication and data integrity over the transport desired driver
Method Summary
  __init__(self, handle, stack, transport_driver)
Initialize a socket that uses TCP and GSI
    Inherited from XioSocket
  __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
  close(self)
close the socket
  connect(self, addr)
Blocking TCP connection establishment.
  dup(self)
Return a new socket object identical to the current one
  fileno(self)
Return the underlying file descriptor
  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.
  makefile(self)
Return the underlying file descriptor
  recv(self, buflen, data_desc)
blocking read call
  send(self, data, data_desc)
Emulates socket.send -- writes a string over a socket
  sendall(self, data, data_desc)
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.
  settimeout(self, timeout)
Sets a timeout for the socket
  shutdown(self, how)
shutdown the reading, writing or both sides of the socket
  _make_addr_tuple(self, addr_string)
Internal method only
  _make_contact_string(self, addr_tuple)
Internal method only
  _set_open(self, value)
Internal method only
    Inherited from XioBase
  get_handle(self)
Return the handle

Method Details

__init__(self, handle=None, stack=None, transport_driver=None)
(Constructor)

Initialize a socket that uses TCP and GSI
Overrides:
pyGlobus.xio.XioSocket.__init__

Generated by Epydoc 2.1 on Tue Apr 4 14:32:55 2006 http://epydoc.sf.net