apps/vm/components/helloworld/src/hello.c
/*
    vchantests_handshake:
        Simple writing of int and then waiting for an ack
        If this doesn't work, then nothing else will work
*/
Simple writing of int and then waiting for an ack
If this doesn't work, then nothing else will work
Simple writing of int and then waiting for an ack If this doesn ' t work then nothing else will work
int vchantests_handshake(libvchan_t *ctrl) {
    int handshake = -1;
    DHELL("> starting handshake\n");
    libvchan_wait(ctrl);
    libvchan_recv(ctrl, &handshake, sizeof(int));
    assert(handshake == VCHANTESTS_HANDSHAKE_CODE);
    handshake = VCHANTESTS_HANDSHAKE_ACK;
    libvchan_send(ctrl, &handshake, sizeof(int));
    DHELL("> concluded handshake\n");
    return 0;
}
int vchantests_handshake ( libvchan_t * ctrl ) { int handshake = -1 ; DHELL ( " \n " ) ; libvchan_wait ( ctrl ) ; libvchan_recv ( ctrl , & handshake , sizeof ( int ) ) ; assert ( handshake == VCHANTESTS_HANDSHAKE_CODE ) ; handshake = VCHANTESTS_HANDSHAKE_ACK ; libvchan_send ( ctrl , & handshake , sizeof ( int ) ) ; DHELL ( " \n " ) ; return 0 ; }
vchantests_handshake:
Simple writing of int and then waiting for an ack
If this doesn't work, then nothing else will work
vchantests_handshake : Simple writing of int and then waiting for an ack If this doesn ' t work then nothing else will work