Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RPC

171 views
Skip to first unread message

Christian Cambier

unread,
Aug 9, 1999, 3:00:00 AM8/9/99
to
Hi,

just trying to establish an RPC-connection between a client and server
program
using TCPIP as supported protocol.

But when executing function :

rStat = RpcServerUseProtseqEp ("ncacn_ip_tcp",
1,
// max number of clients

"192.168.100.68[1000]", // pszEndpoint
NULL);
// security

do I get an error

RpcServerUseProtseqEp failed with 1706
The endpoint format is invalid.

What is the correct format ?

Thanks

Chris

Alessio Gordini

unread,
Aug 9, 1999, 3:00:00 AM8/9/99
to
I don't know anything about RPC; I would try 192.168.100.68:1000.

hth, Alessio

alessiog.vcf

HaveABeer

unread,
Aug 10, 1999, 3:00:00 AM8/10/99
to
> rStat = RpcServerUseProtseqEp ("ncacn_ip_tcp",
[cut]

>"192.168.100.68[1000]", // pszEndpoint
>
>What is the correct format ?


"1000"
The IP is your current IP so you don't need to provide it. Only client
needs to know the server's IP.
At least it's how my hello-world RPC application worked.

HaveABeer

Christian Cambier

unread,
Aug 11, 1999, 3:00:00 AM8/11/99
to
Hi,

I didn't get any valuable answers : so just resending my request, but thanks
anyway for those who replied

I'm trying to establish an RPC-connection between a client and server


program using TCPIP as supported protocol.

But when executing function :

rStat = RpcServerUseProtseqEp (
"ncacn_ip_tcp",


1,
// max number of clients

"192.168.100.68[1000]", // pszEndpoint

NULL);

do I get an error

RpcServerUseProtseqEp failed with 1706
The endpoint format is invalid.

What is the correct format ?
You must specify both an IP-address and a port number (=1000)

Thanks

Chris


Andrew E. Walldorff

unread,
Aug 11, 1999, 3:00:00 AM8/11/99
to
Don't know much about RPC, but 192.168.100.68:1000 is a common way to
specify a port number....

Christian Cambier wrote in message <7os38m$3ss$1...@news3.Belgium.EU.net>...

Igor Zlatkovic

unread,
Aug 12, 1999, 3:00:00 AM8/12/99
to
Almost right.

The correct format for specifying a port is indeed "192.168.100.68:1000"
When combined with the "ncacn_ip_tcp" protocol sequence, this is exactly how it
should be done.

When using the original format with angle braces, then the protocol sequence
must be prepended: "ncacn_ip_tcp:192.168.100.68[1000]"

If these doesn't work, then there is something wrong with your RPC setup.

Ciao
Igor

0 new messages