Author Topic: TCP Forwarder  (Read 7274 times)


  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
TCP Forwarder
« on: December 15, 2017, 02:33:30 AM »
Hi, i try to write TCP asynchronous forwarder with Chilkat.socket component.    My idea is simple. I want to listen on localhost TCP port and forward incoming packets to remote endpoint, incoming packet from remote endpoint forward back to localhost client. I try my code with service like RDP (TCP 3389), VNC (TCP 5900)

I have problem that my code sometimes works good, sometimes freeze, sometimes use too much CPU resources , sometimes asynchronous receive task return 0 bytes lenght etc.
Can you advise me what I'm doing wrong in my code ?