github.com/haraldrudell/parl@v0.4.176/pnet/tcp-state.go (about)

     1  /*
     2  © 2021–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)
     3  ISC License
     4  */
     5  
     6  package pnet
     7  
     8  const (
     9  	// the socket is listening from a successful invocation of [SocketListener.Listen]
    10  	soListening socketState = iota + 1
    11  	soAccepting
    12  	soClosing
    13  	soClosed
    14  )
    15  
    16  // socketState represents the state of a tcp udp unix ip socket listener
    17  //   - soListening soAccepting soClosing soClosed
    18  //   - the socket starts with value 0: not listening
    19  type socketState uint32