Table of Contents

Module: gfsocket Zope-2.2.1-src/lib/python/Products/ZGadflyDA/gadfly/gfsocket.py

socket interactions for gadfly client and server

Imported modules   
from select import select
Functions   
certificate
certify
interpret_response
recv_data
reply
reply_exception
reply_success
send_certified_action
send_len
send_packet
unpack_certified_data
  certificate 
certificate ( String,  password )

generate a certificate for a string, using a password

Exceptions   
ValueError
  certify 
certify (
        String,
        cert,
        password,
        )

check a certificate for a string

  interpret_response 
interpret_response ( data )

interpret response data, raise exception if needed

Exceptions   
EXCEPTION
ValueError
  recv_data 
recv_data ( socket,  timeout=10 )

receive data or time out

Exceptions   
IOError
  reply 
reply ( data,  socket )

  reply_exception 
reply_exception (
        exception,
        info,
        socket,
        )

send an exception back to the client

  reply_success 
reply_success ( data,  socket )

report success with data back to client

  send_certified_action 
send_certified_action (
        actor_name,
        action,
        arguments,
        password,
        socket,
        )

  send_len 
send_len ( data,  socket )

send length of data as cr terminated int rep

  send_packet 
send_packet ( socket,  data )

blast out a length marked packet

  unpack_certified_data 
unpack_certified_data ( data )

Classes   
Packet_Reader

nonblocking pseudo-packet reader.


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6