package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 1, 2017
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
README
¶
TCP Server in Go
This repository contains a simple tcp server in Go, designed to work in a similar way as net/http
server.
Documentation
Documentation for this package can be found on https://godoc.org/github.com/Kelindar/tcp.
Documentation
¶
ErrServerClosed occurs wehen a tcp server is closed.
ServeAsync creates a TCP listener and starts the server.
OnAccept is a callback which gets called when a new connection is accepted.
Server represents a TCP server.
Close immediately closes all active listeners.
Serve accepts the connections and fires the callback
Source Files
¶
Click to show internal directories.
Click to hide internal directories.