Module chamomile::transports
source · Structs§
- Rtemote Public Info, include local transport and public key bytes, session_key out_bytes.
- when endpoint get a incoming connection, will send to outside. params:
socket_addr
,endpoint_stream_receiver
,endpoint_stream_sender
andis_stable
,remote_pk bytes
.
Enums§
- Session Endpoint Message. bytes[0] is type, bytes[1..] is data.
- Endpoint can receied this message channel.
Constants§
- waiting for connect time
Functions§
- new a channel for EndpointSendMessage between in session’s and transport stream.
- new a channel for receive EndpointIncomingMessage.
- new a channel for send TransportSendMessage.
- main function. start the endpoint listening.