Remoting with existing Win32 app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to connect with an existing Win32 application via port 1001. Can some
one help me to find out how to?
When I create my own remoting application then I can use
RemotingConfiguration.RegisterWellKnownClientType
but now I don’t think this will work.
The only thing what I know is that I need to connect via port 1001 and the
name of the remote application (TCPSockServer.exe)

Can some one help me?

Gaby
 
Gaby,

What kind of application is this? Is it a .NET application that opens
port 1001 for remoting calls? If so, then Remoting is the way to go.
However, I suspect that it is not a .NET application but rather another app
with a custom message structure. In this case, you would have to use the
Socket class in the System.Net namespace, and connect to port 1001 that way.

Hope this helps.
 
Nicholas,

No it is not an .Net app. just a Win32 application.
Do you've a sample code?

Gaby

Nicholas Paldino said:
Gaby,

What kind of application is this? Is it a .NET application that opens
port 1001 for remoting calls? If so, then Remoting is the way to go.
However, I suspect that it is not a .NET application but rather another app
with a custom message structure. In this case, you would have to use the
Socket class in the System.Net namespace, and connect to port 1001 that way.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Gaby said:
Hi,

I need to connect with an existing Win32 application via port 1001. Can
some
one help me to find out how to?
When I create my own remoting application then I can use
RemotingConfiguration.RegisterWellKnownClientType
but now I don't think this will work.
The only thing what I know is that I need to connect via port 1001 and the
name of the remote application (TCPSockServer.exe)

Can some one help me?

Gaby
 
Gaby,

In this case, you should check out the documentation for the constructor
for the Socket class, as well as the call to the Connect method. The
constructor is where you set the connection protocol (IP vs UDP), and then
the Connect method is where you specify where to connect to (address and
port).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Gaby said:
Nicholas,

No it is not an .Net app. just a Win32 application.
Do you've a sample code?

Gaby

Nicholas Paldino said:
Gaby,

What kind of application is this? Is it a .NET application that
opens
port 1001 for remoting calls? If so, then Remoting is the way to go.
However, I suspect that it is not a .NET application but rather another
app
with a custom message structure. In this case, you would have to use the
Socket class in the System.Net namespace, and connect to port 1001 that
way.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Gaby said:
Hi,

I need to connect with an existing Win32 application via port 1001. Can
some
one help me to find out how to?
When I create my own remoting application then I can use
RemotingConfiguration.RegisterWellKnownClientType
but now I don't think this will work.
The only thing what I know is that I need to connect via port 1001 and
the
name of the remote application (TCPSockServer.exe)

Can some one help me?

Gaby
 
Back
Top