<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
</div>Thanks, I cannot get it to run with my vncviewer (TightVNC Viewer<br>
version 1.3.9)<br>
<br>
How should I call vncviewer and your Main binary?<br></blockquote><div><br></div><div>./Main 200 200 5900</div><div><br></div><div>after this, the program should start listening to port 5900</div><div><br></div><div>You can check if things are fine by telneting to localhost:5900, you should see this - </div>
<div><div><br></div><div>ck@ck-desktop:~/lab/Chitra$ telnet localhost 5900</div><div>Trying ::1...</div><div>Trying 127.0.0.1...</div><div>Connected to localhost.</div><div>Escape character is &#39;^]&#39;.</div><div>RFB 003.003</div>
</div><div><br></div><div>After this, you can use vncviewer to connect to localhost (5900 is the default port for vnc)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
P.S. after getArgs in Main.hs use<br>
  case args of<br>
    [x, y, p] -&gt; ...<br>
    _ -&gt; putStrLn &quot;usage: Main xres yres port&quot;<br>
<br>
  instead of &quot;!!&quot;<br>
</blockquote></div><br><div>Thanks Christian ... I&#39;ve incorporated this.</div><div><br></div><div>Regards,</div><div>Kashyap</div>