Tani OpcPipe protocol  1.0.5
Tani OpcPipe protocol
Classes | Macros | Functions
PlcOpcPipeNet.h File Reference

OpcPipe communication. More...

Classes

struct  OPCPIPE_PARAMS
 use to create opcpipe connection More...
 

Macros

#define OPCPIPE_PARAMS_PASSWORD(pipe)   ((char*)((pipe) + 1))
 

Functions

EXTERN_C int WENTRY_C WmkProtServerConnection (IP_CONNECT_PARAMS *ip, W_UINT8 *adapter, W_UINT32 *rethandle, const char *pwd, W_UINT32 options, ACCESS_VALUES *access)
 
EXTERN_C int WENTRY_C WmkProtClientConnection (IP_CONNECT_PARAMS *ip, W_UINT8 *adapter, W_UINT32 *rethandle, const char *pwd, W_UINT32 options)
 
EXTERN_C int WENTRY_C OpcPipeNetDebugSetShareHandle (void *givenShare)
 Tani internal debug only!
 
EXTERN_C int WENTRY_C OpcPipeNetQueryLoadPath (char *name, int maxlen)
 
EXTERN_C int WENTRY_C OpcPipeNetQueryVersion (W_UINT32 *version)
 
EXTERN_C int WENTRY_C OpcPipeNetReadDebugBuffer (char *buffer, W_UINT32 buflen)
 

Detailed Description

OpcPipe communication.

Author
Werner Krings, Werner Mehrbrodt
Copyright: © 2018 Tani GmbH
werne.nosp@m.r.kr.nosp@m.ings@.nosp@m.tani.nosp@m.ndust.nosp@m.rie..nosp@m.de
formatted with tab size of 6
Date
Created on 20 apr 18
last modified 20 april 2018

Function Documentation

◆ WmkProtClientConnection()

EXTERN_C int WENTRY_C WmkProtClientConnection ( IP_CONNECT_PARAMS *  ip,
W_UINT8 *  adapter,
W_UINT32 *  rethandle,
const char *  pwd,
W_UINT32  options 
)

Starts one OpcPipe client connection. The client must be initialized before.

Returns
error values
See also
WmkProtClientStopConnection
Parameters
[in]ipIP connect params for the connection
[in]adapter0 or the adapter id to use
[out]rethandleAddress to the returned client connection handle . The handle is valid if no error returns.
[in]pwdThe password string. Internally this is handled in MD5 manner. The password is case sensitive, it can contain all letters and is null terminated ("C" string).
[in]optionsBitwise options. values for the options and OPCPIPE_PARAMS::Options in starting a connection, bitwise

◆ WmkProtServerConnection()

EXTERN_C int WENTRY_C WmkProtServerConnection ( IP_CONNECT_PARAMS *  ip,
W_UINT8 *  adapter,
W_UINT32 *  rethandle,
const char *  pwd,
W_UINT32  options,
ACCESS_VALUES access 
)

Starts one OpcPipe server connection. The server must be initialized before.

Returns
error values
See also
WmkProtServerStopConnection
Parameters
[in]ipIP connect params for the connection
[in]adapter0 or the adapter id to use
[out]rethandleAddress to the returned server connection handle . The handle is valid if no error returns.
[in]pwdThe password string. Internally this is handled in MD5 manner. The password is case sensitive, it can contain all letters and is null terminated ("C" string).
[in]optionsBitwise options. values for the options and OPCPIPE_PARAMS::Options in starting a connection, bitwise
[in]accessaccess levels