Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelForwarder ¶
type ChannelForwarder struct { InChannel chan *DataMessage OutChannel chan *DataMessage Reader io.Reader Writer io.Writer ChannelOpen bool NotifyClosure chan struct{} Clients map[string]*Client ClientsLock *sync.Mutex }
func (*ChannelForwarder) Close ¶
func (c *ChannelForwarder) Close()
func (*ChannelForwarder) KeepAlive ¶
func (c *ChannelForwarder) KeepAlive()
func (*ChannelForwarder) ReadInputData ¶
func (c *ChannelForwarder) ReadInputData()
func (*ChannelForwarder) Terminate ¶
func (c *ChannelForwarder) Terminate()
func (*ChannelForwarder) WriteOutputData ¶
func (c *ChannelForwarder) WriteOutputData()
type Client ¶
type Client struct { Id string // contains filtered or unexported fields }
func (*Client) ReadFromClientToChannel ¶
func (c *Client) ReadFromClientToChannel()
func (*Client) ReadyToClose ¶
func (*Client) SetReadyToClose ¶
type DataMessage ¶
type DataMessage struct { ClientId string CloseClient bool DeadClient bool Data []byte CloseChannel bool KeepAlive bool }
func NewMessage ¶
func NewMessage(clientId string, data []byte) *DataMessage
Click to show internal directories.
Click to hide internal directories.