ncacn_ip_tcp attribute
The ncacn_ip_tcp keyword identifies TCP/IP as the protocol family for the endpoint.
endpoint("ncacn_ip_tcp:server-name[port-name]")
Parameters
-
server-name
-
Specifies the name or Internet address for the server, or host, computer. The name is a character string. The Internet address is a common Internet address notation.
-
port-name
-
Specifies an optional 16-bit number. Values of less than 1024 are usually reserved. If no value is specified, the endpoint-mapping service selects a valid port-name value.
Remarks
The syntax of the TCP/IP transport port string, like all port strings, is defined independently of the IDL specification. The compiler performs some syntax checking but does not guarantee that the endpoint specification is correct. Some errors may be reported at run time rather than at compile time.
Examples
[
uuid(12345678-4000-2006-0000-20000000001a),
version(1.1),
endpoint("ncacn_ip_tcp:rainier[1404]")
]
interface iface
{
// Interface definition statements.
}
endpoint("ncacn_ip_tcp:128.10.2.30[1404]")
See also