X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=iso.c;h=746a9457c84abb54c383a9954663bb31dde3a950;hp=9a343ad207f5dce2282a9fded81b85776be1af42;hb=e0d6c6eb80e1c3ce8c95954002bb3c6642681758;hpb=4539b581a53654e64fb3c6d0de04ff31d035b81f diff --git a/iso.c b/iso.c index 9a343ad..746a945 100644 --- a/iso.c +++ b/iso.c @@ -182,6 +182,30 @@ iso_recv(void) return s; } +BOOL +iso_recv_connect(int server_sock) +{ + STREAM s, t; + uint8 code; + + tcp_recv_connect(server_sock); + + s = iso_recv_msg(&code); + if (s == NULL) + return 0; + + if (code != ISO_PDU_CR) + { + error("expected CR, got 0x%x\n", code); + return 0; + } + + DEBUG(("Got ISO connection request\n")); + + iso_send_msg(ISO_PDU_CC); + return 1; +} + /* Disconnect from the ISO layer */ void iso_disconnect(void)