Skip to content

File tunnel_types.h

FileList > docs > sandwich_c > tunnel_types.h

Go to the source code of this file

Sandwich tunnel types and states specification.

Public Types

Type Name
enum SandwichTunnelHandshakeState
Enum HandshakeState.
typedef enum SandwichTunnelHandshakeState SandwichTunnelHandshakeState
enum SandwichTunnelRecordError
Enum RecordError.
typedef enum SandwichTunnelRecordError SandwichTunnelRecordError
enum SandwichTunnelState
Enum State.
typedef enum SandwichTunnelState SandwichTunnelState

Public Types Documentation

enum SandwichTunnelHandshakeState

enum SandwichTunnelHandshakeState {
    SANDWICH_TUNNEL_HANDSHAKESTATE_IN_PROGRESS = 0,
    SANDWICH_TUNNEL_HANDSHAKESTATE_DONE = 1,
    SANDWICH_TUNNEL_HANDSHAKESTATE_WANT_READ = 2,
    SANDWICH_TUNNEL_HANDSHAKESTATE_WANT_WRITE = 3,
    SANDWICH_TUNNEL_HANDSHAKESTATE_ERROR = 4
};

typedef SandwichTunnelHandshakeState

typedef enum SandwichTunnelHandshakeState SandwichTunnelHandshakeState;

enum SandwichTunnelRecordError

enum SandwichTunnelRecordError {
    SANDWICH_TUNNEL_RECORDERROR_OK = 0,
    SANDWICH_TUNNEL_RECORDERROR_WANT_READ = 1,
    SANDWICH_TUNNEL_RECORDERROR_WANT_WRITE = 2,
    SANDWICH_TUNNEL_RECORDERROR_BEING_SHUTDOWN = 3,
    SANDWICH_TUNNEL_RECORDERROR_CLOSED = 4,
    SANDWICH_TUNNEL_RECORDERROR_TOO_BIG = 5,
    SANDWICH_TUNNEL_RECORDERROR_UNKNOWN = 6
};

typedef SandwichTunnelRecordError

typedef enum SandwichTunnelRecordError SandwichTunnelRecordError;

enum SandwichTunnelState

enum SandwichTunnelState {
    SANDWICH_TUNNEL_STATE_NOT_CONNECTED = 0,
    SANDWICH_TUNNEL_STATE_CONNECTION_IN_PROGRESS = 1,
    SANDWICH_TUNNEL_STATE_HANDSHAKE_IN_PROGRESS = 2,
    SANDWICH_TUNNEL_STATE_HANDSHAKE_DONE = 3,
    SANDWICH_TUNNEL_STATE_BEING_SHUTDOWN = 4,
    SANDWICH_TUNNEL_STATE_DISCONNECTED = 5,
    SANDWICH_TUNNEL_STATE_ERROR = 6
};

typedef SandwichTunnelState

typedef enum SandwichTunnelState SandwichTunnelState;

The documentation for this class was generated from the following file docs/sandwich_c/tunnel_types.h