|
MXCreateComClass |
C
NetProg Library |
|
#include
"mx.h"
|
|
|
MXComClass* MXCreateComClass (MX* pmx, char* name, WORD code, int protocol, BYTE fromto, char* tablename) |
|
Parameters |
Description |
pmx |
the
MX manager |
name |
the
name of the connection class to create |
code |
the
identifier of the connection class |
protocol |
the
protocol identifier of the connection class |
fromto |
the
transcoding side of the connection |
tablename |
the
transcodification table name for the connection class |
- Creates a connection class.
This function is equivalent to the CONNETIONCLASS section in the MX Resource
File. The code and name must be unique in the application.
Both sides of the communicating applications should have the same code
and name.
The parameter protocol
represents the protocol to use for all connection instances of this
class.
Supported values are :
protocol
parameter |
|
DIALOG
CLASS |
IPPROTO_TCP |
TCP protocol |
|
IPPROTO_FTP
|
FTP protocol |
|
IPPROTO_SMTP
|
SMTP
protocol |
|
IPPROTO_DNS
|
DNS protocol |
|
IPPROTO_HTTP
|
HTTP
protocol |
|
IPPROTO_POP
|
POP protocol |
|
IPPROTO_BC
|
BC protocol
(MX Defined) |
|
IPPROTO_DG |
DG protocol
(MX Defined) |
|
IOPROTO_STORE |
|
|
IOPROTO_FIXED |
|
|
DBPROTO_ODBC |
|
|
DBPROTO_ORACLE |
|
|
DBPROTO_SQLDS |
|
|
|
|