functionestablishClientSocket

Establishes the client socket connection

Information

Function that establishes a socket connection to the BCVTB.

For the xml file name, on Windows use two backslashes to separate directories, i.e., use

  xmlFileName="C:\\examples\\dymola-room\\socket.cfg"

Inputs

TypeNameDefaultDescription
StringxmlFileName"socket.cfg"Name of xml file that contains the socket information

Outputs

TypeNameDefaultDescription
IntegersocketFDSocket file descripter, or a negative value if an error occurred

Revisions

  • May 5, 2009, by Michael Wetter:
    First implementation.