]> git.sesse.net Git - rdpsrv/blobdiff - rdpsrv.c
Give up X server for now, connect to VNC on localhost instead.
[rdpsrv] / rdpsrv.c
index e97515b53d965d29f04594b7f678aeb80de7e98a..7c6b1f60a7dbeba7ca3118a9b6afc70d23890b90 100644 (file)
--- a/rdpsrv.c
+++ b/rdpsrv.c
@@ -104,10 +104,13 @@ void handle_input_pdu(STREAM s)
 
 int serve_client()
 {
 
 int serve_client()
 {
+       // connect to VNC
+       int vnc_sock = tcp_connect("127.0.0.1", 5901);
+       
        if (!mcs_recv_connect_initial())
                error("MCS_CONNECT_INITIAL recv failed");
        mcs_send_connect_response();
        if (!mcs_recv_connect_initial())
                error("MCS_CONNECT_INITIAL recv failed");
        mcs_send_connect_response();
-       
+
        for ( ;; ) {
                uint8 type, data_pdu_type;
                STREAM s;
        for ( ;; ) {
                uint8 type, data_pdu_type;
                STREAM s;