Documentation

xPCReOpenPort

Reopen communication channel

Prototype

int xPCReOpenPort(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

If the function reopens a connection without detecting an error, it returns 0. If it detects an error, it returns -1.

Description

The xPCReOpenPort function reopens the communications channel pointed to by port. The difference between this function and xPCOpenTcpIpPort is that xPCReOpenPort uses the existing settings, while the other functions first set up the port.

Introduced before R2006a

Was this topic helpful?