server

package
v1.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: MIT Imports: 10 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL