X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=dda4a173ad0856c0e27bc2e4482a06fdc8540b20;hp=bb5b1db4727dae82a7484d714216d1cffcff0146;hb=63fa9a9043d4a58ee7994e669bcc566f09bc9e9b;hpb=d3b814ac537b22ffabdd350332e819ad002b8924 diff --git a/rdpsrv.c b/rdpsrv.c index bb5b1db..dda4a17 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -61,15 +61,16 @@ int create_server_socket() int serve_client() { - mcs_recv_connect_initial(); + 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; - printf("Packet on ch %u\n", channel); + while ((s = rdp_recv(&type)) != NULL) { + printf("RDP packet! type %u\n", type); + } } }