Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Latest commit

 

History

History

listenerutils

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

listenerutils

import "github.com/go-orion/Orion/utils/listenerutils"

listenerutils.go

type CustomListener interface {
    net.Listener
    CanClose(bool)
    GetListener() CustomListener
    StopAccept()
}

CustomListener provides an implementation for a custom net.Listener

func NewListener(network, laddr string) (CustomListener, error)

NewListener creates a new CustomListener

func NewListenerWithTimeout(network, laddr string, timeout time.Duration) (CustomListener, error)

Generated by godoc2ghmd