]> git.sesse.net Git - rdpsrv/blobdiff - rdpsrv.c
Pull in rdp.c from rdesktop, use rdp_recv().
[rdpsrv] / rdpsrv.c
index 138cff249551ce3f85b2a1ec54f7e13f51e47fe6..dda4a173ad0856c0e27bc2e4482a06fdc8540b20 100644 (file)
--- 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);
+               }
        }
 }