Click here to Skip to main content
6,305,776 members and growing! (16,935 online)
Email Password   helpLost your password?
General Programming » Internet / Network » Remoting     Intermediate

Socket stream redirection using .NET remoting

By Navise

Redirecting socket stream over HTTP channel with .NET remoting.
C#.NET 1.1, Win2K, WinXP, Win2003VS.NET2003, Dev
Posted:4 May 2004
Views:32,484
Bookmarked:12 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
5 votes for this article.
Popularity: 2.21 Rating: 3.17 out of 5
1 vote, 20.0%
1
1 vote, 20.0%
2
1 vote, 20.0%
3

4
2 votes, 40.0%
5

Sample Image - TCP2HTTP.jpg

Introduction

Since this is my first uploaded project, I will be quite brief.

This simple program uses .NET remoting built in HTTP channel to establish a two-way communication channel between client and server endpoints which is adequate for firewalled and proxy environments.

Basically, at the server end, TCP2HTTPActivator registers TCP2HTTPServer which is a MarshalByRefObject class that exposes a few methods for sending and receiving socket data. When a client connects to the server, it requests a connection to a particular TCP port. Server object opens a connection to the local port and serves as a proxy between client and server sides.

At the client end, TCP2HTTPClient starts listening at a predetermined port which is used for redirecting the TCP socket data transfer over HTTP channel. When an application connects locally to a defined port, TCP2HTTPClient feeds the data to the server and backwards via sendTCPStream and receiveTCPStream methods.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Navise


Member

Occupation: Web Developer
Location: Croatia Croatia

Other popular Internet / Network articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 5 of 5 (Total in Forum: 5) (Refresh)FirstPrevNext
GeneralHas anyone figured out how to get this to work? Pinmemberskirby557:32 21 Jun '07  
GeneralHow to run the demo? Pinmemberlangdeng15:25 12 Oct '05  
Generalseperation Pinmemberseer_tenedos216:11 24 Feb '05  
GeneralRe: seperation PinmemberNavise12:52 26 Feb '05  
GeneralMore details PinmemberMichael A. Barnhart1:15 18 May '04  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 4 May 2004
Editor: Smitha Vijayan
Copyright 2004 by Navise
Everything else Copyright © CodeProject, 1999-2009
Web19 | Advertise on the Code Project