Skip to main content

Module service

Module service 

Source
Expand description

Service trait for ma endpoint protocol handlers.

A Service is analogous to an entry in /etc/services: a named protocol on a ma endpoint. Register services on an MaEndpoint to handle incoming connections on their protocol.

Constants§

BROADCAST_PROTOCOL
BROADCAST_TOPIC
The well-known broadcast topic string (same path as BROADCAST_PROTOCOL).
CONTENT_TYPE_BROADCAST
CONTENT_TYPE_DOC
CONTENT_TYPE_IPFS_REQUEST
CONTENT_TYPE_MESSAGE
INBOX_PROTOCOL
INBOX_PROTOCOL_ID
IPFS_PROTOCOL

Traits§

Service
Trait that all ma services must implement.