"""
Protocol implementation for Tyrant 
<http://tokyocabinet.sourceforge.net/tyrantdoc/>
"""

import math
import socket
import struct

class TyrantError(Exception):
    """
    Tyrant error, socket and communication errors are not included here.
    """

# pyrant constants
MAGIC_NUMBER = 0xc8
ENCODING = 'UTF-8'