X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=iso.c;h=c694624962c6bb90d68262dfa02606542d951ec1;hp=9a343ad207f5dce2282a9fded81b85776be1af42;hb=d4bb133e346809bf5393c0cdb06b2a422b99dddb;hpb=24fc372e71f0e7fe4d4df9605bb5808b49a2f7ff diff --git a/iso.c b/iso.c index 9a343ad..c694624 100644 --- a/iso.c +++ b/iso.c @@ -182,6 +182,29 @@ iso_recv(void) return s; } +BOOL +iso_recv_connect(int server_sock) +{ + STREAM s; + 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")); + + return 1; +} + /* Disconnect from the ISO layer */ void iso_disconnect(void)