Documentation ¶
Overview ¶
Package udp provides common functionality used in udpc and udps packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ID() string String() string Close(code int, reason string) Send(msg *network.Message) (rmsg *network.Message, err error) OpenStream(data map[string]string) (stream *Stream, err error) CloseStream(id string) }
Client Interface stipulates functions which should be present in a client
type Stream ¶
type Stream struct { // Stream ID Id string // Stream Metadata Data map[string]string // Exit Channel Exit chan bool // Closed Status Closed bool // contains filtered or unexported fields }
Stream
func HandleStream ¶
func NewStreamFromData ¶
func NewStreamFromData(data *model.StreamConnectionData, channel *network.Channel) *Stream
Click to show internal directories.
Click to hide internal directories.