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