startrek 1.2.0
startrek: ^1.2.0 copied to clipboard
Interstellar Transport
Star Trek: Interstellar Transport #
Network Module #
- Channel
- Socket
- Connection
- TimedConnection
- ConnectionState
- ConnectionDelegate
- TimedConnection
- Hub
- ConnectionPool
/**
* Architecture:
*
* Connection Connection Connection
* Delegate Delegate Delegate
* ^ ^ ^
* : : :
* ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~
* : : :
* +===+------V-----+====+------V-----+===+-----V------+===+
* || | connection | | connection | | connection | ||
* || +------------+ +------------+ +------------+ ||
* || : : : ||
* || : HUB :...............: ||
* || : : ||
* || +-----------+ +-----------+ ||
* || | channel | | channel | ||
* +======+-----------+===========+-----------+============+
* | socket | | socket |
* +-----^-----+ +-----^-----+
* : (TCP) : (UDP)
* : ........:........
* : : :
* ~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~
* : : :
* V V V
* Remote Peer Remote Peer Remote Peer
*/
- Ship
- Arrival
- Departure
- Arrival
- Dock
- ArrivalHall
- DepartureHall
- ArrivalHall
- Porter
- PorterDelegate
- Gate
- PorterPool
/**
* Architecture:
*
* Porter Delegate Porter Delegate Porter Delegate
* ^ ^ ^
* : : :
* ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~
* : : :
* +==========V=================V===============V==========+
* || : : : ||
* || : Gate : : ||
* || : : : ||
* || +------------+ +------------+ +------------+ ||
* || | porter | | porter | | porter | ||
* +===+------------+====+------------+===+------------+===+
* || | connection | | connection | | connection | ||
* || +------------+ +------------+ +------------+ ||
* || : : : ||
* || : HUB :...............: ||
* || : : ||
* || +-----------+ +-----------+ ||
* || | channel | | channel | ||
* +======+-----------+===========+-----------+============+
* | socket | | socket |
* +-----^-----+ +-----^-----+
* : (TCP) : (UDP)
* : ........:........
* : : :
* ~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~ ~:~ ~ ~ ~ ~ ~ ~
* : : :
* V V V
* Remote Peer Remote Peer Remote Peer
*/
Finite State Machine #
- State
- Transition
- Machine
- BaseMachine
- AutoMachine
- BaseMachine
- MachineDelegate
Others #
- Runner
- Ticker
- Metronome
Copyright © 2023 Albert Moky