Documentation ¶
Index ¶
- func ConnectToMiners(listener net.Listener) []net.Conn
- func MulticastSendTransactionToMinersSimulatedDelay(clientTransaction Transaction, minerChannels []net.Conn)
- func SendRequest(minerChannels []net.Conn, delayInterval int)
- func SendStartup(clientID int) net.Conn
- func WaitForController(controllerChannel net.Conn)
- type Clients
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MulticastSendTransactionToMinersSimulatedDelay ¶
func MulticastSendTransactionToMinersSimulatedDelay(clientTransaction Transaction, minerChannels []net.Conn)
MulticastSendSimulatedDelay waits for a random bounded time to simulate message delay and then sends a transaction object to specified destinations via tcp.
func SendRequest ¶
SendRequest() periodically multicasts transactions to miners.
func SendStartup ¶
SendStartup sends a start up message to the controller.
func WaitForController ¶
WaitForController waits for a PROCEED message (string, not an object) from the controller that all processes have started up.
Types ¶
Click to show internal directories.
Click to hide internal directories.