Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameters of the connection function:

Parameter

Description

Example

LPCTSTR ip 

The ID address of the computer that is running the system core


Code Block
CString port = "900";

CString ip = "127.0.0.1";

CString id = "2";

BOOL IsConnect = Connect(ip, port, id, myfunc);

if (!IsConnect)        

{

  // connection failed

  AfxMessageBox("Error");

}

 

 



LPCTSTR port

TCP/IP connection port

LPCTSTR id

A connection ID, for video

_stdcall *func)(LPCTSTR msg))

A callback function that accepts messages from Axxon PSIM

 


The function returns TRUE if the connection is established, or FALSE if not.

...