469,313 Members | 2,636 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

Remoting with existing Win32 app

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
Nov 16 '05 #1
3 1033
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]
- mv*@spam.guard.caspershouse.com

"Gaby" <Ga**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
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

Nov 16 '05 #2
Nicholas,

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

Gaby

"Nicholas Paldino [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"Gaby" <Ga**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
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


Nov 16 '05 #3
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]
- mv*@spam.guard.caspershouse.com

"Gaby" <Ga**@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
Nicholas,

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

Gaby

"Nicholas Paldino [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"Gaby" <Ga**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
> 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


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Pielak | last post: by
1 post views Thread by Lucas Tam | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.