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
//! WebSocket to TCP proxy server.
//!
//! # References
//!
//! - [RFC 6455] The WebSocket Protocol
//!
//! [RFC 6455]: https://tools.ietf.org/html/rfc6455
#![warn(missing_docs)]
extern crate base64;
extern crate bytecodec;
extern crate byteorder;
extern crate fibers;
extern crate futures;
extern crate httpcodec;
extern crate sha1;
#[macro_use]
extern crate slog;
#[macro_use]
extern crate trackable;

pub use error::{Error, ErrorKind};
pub use server::ProxyServer;

mod channel;
mod error;
mod frame;
mod opcode;
mod server;
mod util;

/// This crate specific `Result` type.
pub type Result<T> = std::result::Result<T, Error>;