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