X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=dda4a173ad0856c0e27bc2e4482a06fdc8540b20;hp=86235ec2544d0dd1fb76e7cb8ee786fb8634892c;hb=f7c77f1d801d69794ea81a97060f260a0af51e51;hpb=d4bb133e346809bf5393c0cdb06b2a422b99dddb diff --git a/rdpsrv.c b/rdpsrv.c index 86235ec..dda4a17 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -61,10 +61,16 @@ 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; - - /* receive ISO packets */ - mcs_recv(&channel); + uint8 type; + STREAM s; + + while ((s = rdp_recv(&type)) != NULL) { + printf("RDP packet! type %u\n", type); + } } }