piut_connect

Use this function to establish a connection to the default pi home node server if calling from a pi client node. The first four characters of the argument procname will be used for the connection ID string if specified or the default string will be used. The default string will be either the ID string specified using piut_procname or the process name. Calling this function also insures that the client and server PINet versions are compatible.

C format

int32 piut_connect(

char PIPTR * procname );

Returns

>0

System Error

0

Success

-1

Attempt to reconnect within 60 seconds or socket_open has failed

-994

Incompatible PINET protocol version

-1001

Default host not found

Arguments

procname (passed)

Character string identifying the client application to the server

Usage Notes

Enabling Operational Intelligence