Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { // Network define the network protocol Network libptc.NetworkProtocol `` // Address define the address to connect Address string }
ClientConfig define the client configuration
type ServerConfig ¶
type ServerConfig struct { // network protocol Network libptc.NetworkProtocol `` // address to listen Address string // permission of owner for socket file PermFile os.FileMode // permission of group for socket file GroupPerm int32 }
ServerConfig define the server configuration
func (ServerConfig) New ¶
func (o ServerConfig) New(updateCon libsck.UpdateConn, handler libsck.Handler) (libsck.Server, error)
New returns a new server with the given handler and based on the ServerConfig handler libsck.Handler (libsck.Server, error)
Click to show internal directories.
Click to hide internal directories.