File: socketutils.rst

package info (click to toggle)
python-boltons 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,236 kB
  • sloc: python: 12,133; makefile: 159; sh: 7
file content (36 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
``socketutils`` - ``socket`` wrappers
=====================================

.. automodule:: boltons.socketutils

BufferedSocket
--------------

.. autoclass:: boltons.socketutils.BufferedSocket
   :members:

Exceptions
^^^^^^^^^^

These are a few exceptions that derive from :exc:`socket.error` and
provide clearer code and better error messages.

.. autoexception:: boltons.socketutils.Error
.. autoexception:: boltons.socketutils.Timeout
.. autoexception:: boltons.socketutils.ConnectionClosed
.. autoexception:: boltons.socketutils.MessageTooLong

Netstring
---------

.. autoclass:: boltons.socketutils.NetstringSocket
   :members:

Nestring Exceptions
^^^^^^^^^^^^^^^^^^^

These are a few higher-level exceptions for Netstring connections.

.. autoexception:: boltons.socketutils.NetstringProtocolError
.. autoexception:: boltons.socketutils.NetstringInvalidSize
.. autoexception:: boltons.socketutils.NetstringMessageTooLong