Package smisk :: Module core
[frames] | no frames]

Module core

Smisk core library

Version: 1.0.0

Classes
  Application
An application.
  Error
  FileSessionStore
Basic session store which uses files
  IOError
  InvalidSessionError
  Request
A HTTP request
  Response
A HTTP response
  SessionStore
Basic session store type
  Stream
FastCGI input/output stream
  URL
Uniform Resource Locator
Functions
None
bind(...)
Bind to a specific unix socket or host (and/or port).
string
listening(...)
Find out if this process is a "remote" process, bound to a socket by means of calling bind().
Variables
  __build__ = '0805111724-7ed4b5b456d4+'
Function Details

bind(...)

 
Bind to a specific unix socket or host (and/or port).
Parameters:
  • path (string) - The Unix domain socket (named pipe for WinNT), hostname, hostname and port or just a colon followed by a port number. e.g. "/tmp/fastcgi/mysocket", "some.host:5000", ":5000", "*:5000".
  • backlog (int) - The listen queue depth used in the ''listen()'' call. Set to negative or zero to let the system decide (recommended).
Returns: None
Raises:

listening(...)

 
Find out if this process is a "remote" process, bound to a socket by means of calling bind(). If it is listening, this function returns the address and port or the UNIX socket path. If not bound, this function returns None.
Returns: string
Raises: