[][src]Module chamomile::transports

Structs

EndpointIncomingMessage

when endpoint get a incoming connection, will send to outside. params: socket_addr, endpoint_stream_receiver, endpoint_stream_sender and is_start_connect_by_self.

Enums

EndpointSendMessage

Endpoint can receied this message channel.

EndpointStreamMessage

StreamMessage use in endpoint and outside.

TransportType

Transports types support by Endpoint.

Traits

Endpoint

Transports trait, all transport protocol will implement this.

Functions

new_endpoint_recv_channel

new a channel for receive EndpointIncomingMessage.

new_endpoint_send_channel

new a channel for send EndpointSendMessage.

new_endpoint_stream_channel

new a channel for EndpointStreamMessage.

start

main function. start the endpoint listening.