Documentation

xPCScGetType

Get type of scope

Prototype

int xPCScGetType(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the scope type. If the function detects an error, it returns -1.

Description

The xPCScGetType function gets the type (SCTYPE_HOST for host, SCTYPE_TARGET for target, or SCTYPE_FILE for file) of scope scNum. Use the constants defined in xpcapiconst.h to interpret the return value. A scope of type SCTYPE_HOST is displayed on the development computer while a scope of type SCTYPE_TARGET is displayed on the target computer screen. A scope of type SCTYPE_FILE is stored on a storage medium. Use the xPCGetScope function to get the scope number.

Introduced before R2006a

Was this topic helpful?