Click here to Skip to main content
Click here to Skip to main content

Socket stream redirection using .NET remoting

, 4 May 2004
Rate this:
Please Sign up or sign in to vote.
Redirecting socket stream over HTTP channel with .NET remoting.

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

Share

About the Author

Navise
Web Developer
Croatia Croatia
No Biography provided

Comments and Discussions

 
QuestionHas anyone figured out how to get this to work? Pinmemberskirby5521-Jun-07 6:32 
QuestionHow to run the demo? Pinmemberlangdeng12-Oct-05 14:25 
Generalseperation Pinmemberseer_tenedos224-Feb-05 15:11 
GeneralRe: seperation PinmemberNavise26-Feb-05 11:52 
GeneralMore details PinmemberMichael A. Barnhart18-May-04 0:15 
May I suggest you rewrite the article and go into more details. Give some sample code and explain what it is doing for the user. All you have really said is "Hey here is some code, go figure it out."
 
My 2 cents.
 
I do not mind getting old. It beats all the other options that can think of.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 5 May 2004
Article Copyright 2004 by Navise
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid