X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=rdpsrv.c;h=dda4a173ad0856c0e27bc2e4482a06fdc8540b20;hb=f7c77f1d801d69794ea81a97060f260a0af51e51;hp=138cff249551ce3f85b2a1ec54f7e13f51e47fe6;hpb=9c9c2d9eddac59fb0379c09a9027aabf6f5a3b3c;p=rdpsrv 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); + } } }