Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize() error
Initialize preps the starting of the transit server. The transit server is a direct TCP pipeline between clients, this is used if all other P2P methods fail and an intermediary is needed after all
Types ¶
type Client ¶
type Client struct { SentOK bool GotToken bool TokenBuf []byte Token string Side string Mood string Buddy *Client // contains filtered or unexported fields }
Client wraps up the net.Conn connection with other local properties describing a client connection to the transit service
func (*Client) Close ¶
func (c *Client) Close()
Close shutsdown the client connection and frees any resources we may be consuming
func (*Client) HandleConnection ¶
func (c *Client) HandleConnection()
HandleConnection takes over the client connection and starts processing data that comes in from it
Click to show internal directories.
Click to hide internal directories.