X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=dda4a173ad0856c0e27bc2e4482a06fdc8540b20;hp=138cff249551ce3f85b2a1ec54f7e13f51e47fe6;hb=f7c77f1d801d69794ea81a97060f260a0af51e51;hpb=b6ea72f2e99bc93a105c5120573762c162985160 diff --git a/rdpsrv.c b/rdpsrv.c index 138cff2..dda4a17 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -66,12 +66,11 @@ int serve_client() mcs_send_connect_response(); for ( ;; ) { - short channel; + uint8 type; STREAM s; - - /* receive ISO packets */ - s = mcs_recv(&channel); - if (s != NULL) - printf("Packet on ch %u\n", channel); + + while ((s = rdp_recv(&type)) != NULL) { + printf("RDP packet! type %u\n", type); + } } }