py-libp2p/libp2p/stream_muxer/mplex/constants.py

12 lines
205 B
Python
Raw Normal View History

2019-08-02 17:14:43 +08:00
from enum import Enum
class HeaderTags(Enum):
NewStream = 0
MessageReceiver = 1
MessageInitiator = 2
CloseReceiver = 3
CloseInitiator = 4
ResetReceiver = 5
ResetInitiator = 6