Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(handler libsck.Handler, proto libptc.NetworkProtocol, address string, perm os.FileMode, gid int32) (libsck.Server, error)
New creates a new server based on the provided network protocol.
Parameters: - handler: the handler for the server - delim: the delimiter to use to separate messages - proto: the network protocol to use - sizeBufferRead: the size of the buffer for reading - address: the address to bind the server to - perm: the file mode permissions for the socket, not applicable for non unix - gid: the group ID for the socket permissions, not applicable for non unix Return type(s): - libsck.Server: the created server - error: an error if any occurred during server creation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.