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