Lines Matching refs:master
80 /** Waiting for a connection from the master. */
88 // TODO: Use custom headers for master->peer, peer->master, peer->peer.
146 /** Is this peer the master? */
147 bool master;
149 /** Peer proxy for the master. */
187 /** True if this is the master's proxy. */
188 bool master;
194 * Used in master only. Maps this peer proxy to other peer proxies to
202 static const char* MASTER_PATH = "/master.peer";
204 /** Credentials of the master peer. */
242 /** Gets the master address. Not thread safe. */
383 // If we lost the master, we're up a creek. We can't let this happen.
384 if (peerProxy->master) {
385 LOG_ALWAYS_FATAL("Lost connection to master.");
418 // This only applies to the master.
596 * Sends a connection request to the master if desired.
618 // If this is the master peer, we already know about all peers.
619 if (peer->master) {
654 // Send a connection request to the master.
665 * Switches the master peer proxy into a state where it's waiting for a
666 * connection from the master.
671 // Verify that this really is the master.
672 if (!masterProxy->master) {
673 ALOGW("Non-master process %d tried to send us a connection.",
717 * Accepts a connection sent by the master proxy.
755 LOG_ALWAYS_FATAL("Error reading connection from master: %s",
760 LOG_ALWAYS_FATAL("Received EOF from master.");
872 Peer* master = peerProxy->peer;
877 = (PeerProxy*) hashmapGet(master->peerProxies, &targetPid);
891 * The master told us this peer is dead.
1024 /** Accepts a connection to the master peer. */
1253 * Starts the master peer. The master peer differs from other peers in that
1255 * master peer.
1292 localPeer->master = true;
1312 // Connect to master peer.
1340 // Create a peer proxy for the master peer.
1346 masterProxy->master = true;
1350 /** Starts the master peer I/O loop. Doesn't return. */