Skip to content

Commit

Permalink
add: network type enum for select network type listen and serving
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Oct 7, 2022
1 parent 80df94f commit 8720dc5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions network.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package forker

//go:generate stringer -type=Network

type Network int

const (
TCP4 Network = iota + 1
TCP6
UDP
UDP4
UDP6
)
28 changes: 28 additions & 0 deletions network_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8720dc5

Please sign in to comment.