Add a new type 'sockstate/0'

This commit is contained in:
Feng Lee 2019-10-10 13:59:34 +08:00
parent d50c0088d2
commit 0c37c65a59
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,9 @@
, subid/0
]).
-export_type([ conninfo/0
-export_type([ socktype/0
, sockstate/0
, conninfo/0
, clientinfo/0
, clientid/0
, username/0
@ -97,6 +99,7 @@
-type(subid() :: binary() | atom()).
-type(socktype() :: tcp | udp | ssl | proxy | atom()).
-type(sockstate() :: idle | running | blocked | closed).
-type(conninfo() :: #{socktype := socktype(),
sockname := peername(),
peername := peername(),