X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=dda4a173ad0856c0e27bc2e4482a06fdc8540b20;hp=e321ba6342c3b8806fc57bb9f6c4bcabda2c47eb;hb=f7c77f1d801d69794ea81a97060f260a0af51e51;hpb=48580be79f1c97788f7f3a92b9791056b9773058 diff --git a/rdpsrv.c b/rdpsrv.c index e321ba6..dda4a17 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -61,14 +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); + } } }