11 if((p = vtrecv(z)) == nil)
14 if(vtfcallunpack(&tx, p) < 0){
20 if(tx.msgtype != VtThello){
22 werrstr("bad packet type %d; want Thello %d", tx.msgtype, VtThello);
27 werrstr("bad tag in hello");
30 if(strcmp(tx.version, z->version) != 0){
32 werrstr("bad version in hello");
40 memset(&rx, 0, sizeof rx);
41 rx.msgtype = VtRhello;
44 if((p = vtfcallpack(&rx)) == nil)