int serve_client()
{
- mcs_recv_connect_initial();
+ if (!mcs_recv_connect_initial())
+ error("MCS_CONNECT_INITIAL recv failed");
+ mcs_send_connect_response();
for ( ;; ) {
short channel;
+ STREAM s;
/* receive ISO packets */
- mcs_recv(&channel);
-
- printf("Packet on ch %u\n", channel);
+ s = mcs_recv(&channel);
+ if (s != NULL)
+ printf("Packet on ch %u\n", channel);
}
}