py-libp2p/libp2p/stream_muxer/mplex/constants.py
2019-08-05 10:45:46 +08:00

12 lines
205 B
Python

from enum import Enum
class HeaderTags(Enum):
NewStream = 0
MessageReceiver = 1
MessageInitiator = 2
CloseReceiver = 3
CloseInitiator = 4
ResetReceiver = 5
ResetInitiator = 6