clients or servers only.Expand description
MionBootType is used by SDIO server, and thus we allow all of these protos to be used on the server side. This module is a wrapper for all the underlying protocol types used for interacting with MIONs.
In general as a user you probably don’t need to interact with this directly
except for maybe importing a few types that APIs return. In general you
probably want to use the functions available in the other modules under
crate::mion in order to interact with the MIONs in a safe way.
Each of these roughly correlate to one MION service, e.g.:
-
port 7974 UDP is the “control” port, which can be used for discovery. So for communicating on that port you access:
crate::mion::proto::control. note: some tools using session manager improperly use the ATAPI port which while normally being shared just for the TCP side, can in theory be configured differently. -
port 7978 TCP on the other hand is used by
mionpsto look up parameters, so we call it the “parameter” port, so you can access types for communicating on that port under:crate::mion::proto::parameter. The official tools don’t have a way of specifying this port, but it is actually configurable inhttp://<mionip>/setup.cgi. Specifically you can change it under “Parameter Space”.
Modules§
- cgis
- Protocols specifically for talking with the “CGI” http pages of the MION board.
- control
- Protocols specifically for talking with the “control” port of the MION board.
- images
- Protocols, and types specifically related to “IMAGES”, or Disc Images for dealing with the MION.
- parameter
- Protocols for speaking with the “parameter” port of the MION.
Constants§
- DEFAULT_
MION_ CONTROL_ PORT - The port the MION uses for ‘control’ commands.
- DEFAULT_
MION_ PARAMETER_ PORT - The port the MION uses for parameter commands.
- MION_
ANNOUNCE_ TIMEOUT_ SECONDS - The amount of seconds we’ll wait for a MION Control board to respond to a ping.
- MION_
PARAMETER_ TIMEOUT_ SECONDS - MION timeouts for sending packets directly to the MION, on the parameter port.