]> git.sesse.net Git - rdpsrv/blobdiff - rdpsrv.c
Pull in rdp.c from rdesktop, use rdp_recv().
[rdpsrv] / rdpsrv.c
index c5b4169403f7ef271fa7f237e52257bae1925f28..dda4a173ad0856c0e27bc2e4482a06fdc8540b20 100644 (file)
--- a/rdpsrv.c
+++ b/rdpsrv.c
@@ -66,11 +66,11 @@ int serve_client()
        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);
+               }
        }
 }