How to do P2P

  • Thread starter Thread starter Donald Adams
  • Start date Start date
D

Donald Adams

I need to create an application that can connect from our customer (who uses
a proxy server and only allows connections out via http) to our server and
if our server has a change of information can send events back to the client
app.
Both Messenger and Skype work well in this environment.

How should I go about writing this application?
I would like to use .Net 2.0(maybe 3.0), so which objects should I use for
client and server?
What newsgroup would be best to communicate with to find answers to these
problem?

Thanks in Advance,
Donald Adams
 
Thanks for the info, but what I'm after is a way to send messages and I can
not go through a third party.
My basic flow might be:
1. Client app. connects to server from somewhere out there (and stays
connected)
2. Server receives a message and sends it to me.

And it will get to me regardless of whether on not I behind some proxy
server, just like Messenger and Skype.

,,,Donald
 
Thanks for the info, but what I'm after is a way to send messages and I
can not go through a third party.
My basic flow might be:
1. Client app. connects to server from somewhere out there (and stays
connected)
2. Server receives a message and sends it to me.

And it will get to me regardless of whether on not I behind some proxy
server, just like Messenger and Skype.

For basic needs, look at the .NET Socket or TcpClient classes. .NET 3.0
also offers the Windows Communications Framework, which I haven't used but
apparently includes additional functionality to help you.

As far as your requirement that it work whether or not you're behind a
proxy server, that will depend on the proxy server. However, these days
most proxy servers correctly deal with communications that are initiated
by a client behind that proxy server.

Pete
 
Back
Top