]> git.sesse.net Git - rdpsrv/blobdiff - rdpsrv.c
Handle EDrq from client.
[rdpsrv] / rdpsrv.c
index 86235ec2544d0dd1fb76e7cb8ee786fb8634892c..577f4a726aef0e7f7076db91c0b79907e2d6c1dc 100644 (file)
--- a/rdpsrv.c
+++ b/rdpsrv.c
@@ -61,10 +61,17 @@ int create_server_socket()
 
 int serve_client()
 {
+       if (!mcs_recv_connect_initial())
+               error("MCS_CONNECT_INITIAL recv failed");
+       mcs_send_connect_response();
+       
        for ( ;; ) {
                short channel;
+               STREAM *s;
                
                /* receive ISO packets */
-               mcs_recv(&channel);
+               s = mcs_recv(&channel);
+               if (s != NULL)
+                       printf("Packet on ch %u\n", channel);
        }
 }