libcutils/mq.c
static void masterReportConnectionError(PeerProxy* peerProxy,
        Credentials credentials) {
    OutgoingPacket* packet = calloc(1, sizeof(OutgoingPacket));
    if (packet == NULL) {
        LOGW("malloc() error. Failed to tell process %d that process %d is"
                " dead.", peerProxy->credentials.pid, credentials.pid);
        return;
    }
   
    packet->header.type = CONNECTION_ERROR;
    packet->header.credentials = credentials;
    packet->free = &outgoingPacketFree;
    
    peerProxyLockAndEnqueueOutgoingPacket(peerProxy, packet);   
}
/**
 * Informs a peer that the peer they're trying to connect to couldn't be
 * found.
 */
Informs a peer that the peer they're trying to connect to couldn't be
found.
Informs a peer that the peer they ' re trying to connect to couldn ' t be found .
static void masterReportConnectionError(PeerProxy* peerProxy,
        Credentials credentials) {
    OutgoingPacket* packet = calloc(1, sizeof(OutgoingPacket));
    if (packet == NULL) {
        LOGW("malloc() error. Failed to tell process %d that process %d is"
                " dead.", peerProxy->credentials.pid, credentials.pid);
        return;
    }
    packet->header.type = CONNECTION_ERROR;
    packet->header.credentials = credentials;
    packet->free = &outgoingPacketFree;
    peerProxyLockAndEnqueueOutgoingPacket(peerProxy, packet);   
}
static void masterReportConnectionError ( PeerProxy * peerProxy , Credentials credentials ) { OutgoingPacket * packet = calloc ( 1 , sizeof ( OutgoingPacket ) ) ; if ( packet == NULL ) { LOGW ( " " " " , peerProxy -> credentials . pid , credentials . pid ) ; return ; } packet -> header . type = CONNECTION_ERROR ; packet -> header . credentials = credentials ; packet -> free = & outgoingPacketFree ; peerProxyLockAndEnqueueOutgoingPacket ( peerProxy , packet ) ; }
Informs a peer that the peer they're trying to connect to couldn't be
 found.
Informs a peer that the peer they ' re trying to connect to couldn ' t be found .