Hi Everyone,
Today I want to share a small piece of code that demonstrate TCP Sockets usage in .NET.
This is not very advanced example of sockets programming, but at the same time it show a lot of technics that you can use in programming, like:
- debugging of the windows services
- async sockets
- async operations and there synchronization
- events used for service controlling
- registry access
- advanced tracing/logs
- and etc.
Introduction
The idea was to write a simple TCP proxy class that will help us to forward ports (or better to say create a tunnel) from one source to destination.
In my case I want to use this functinality to open direct access to my computer in network shown below (ADSL modem connected by lan to the Vista computer; Vista publich AdHoc connection to the other computer Windows Xp. I setup service on Vista PC that helps me to open port directly for the Windows XP computer!!!):
In more simple way it's looks like this (configuration for testing):
... >>>
Currently rated 5.0 by 6 people
- Currently 5/5 Stars.
- 1
- 2
- 3
- 4
- 5