<<

Contents

Search

>>

 

CONNECTION_SERVER

 

 

Function

 

 

Syntax:

CONNECTION_SERVER(<Protokol>,<Servername>,<Endpoint>)

 

<Protokol>

= <STRING-EXPRESSION>

<Servername>

= <STRING-EXPRESSION>

<Endpoint>

= <STRING-EXPRESSION>

 

 

Meaning:

Tests the connection to Ebus-C-Server.

 

CONNECTION_SERVER returns the value 0 if the connection to the Ebus-C-Server exists, otherwise it returns an error number. The error numbers are listed in the file winerror.h in the Include directory of the C-compiler.

 

This function is only available under Windows. The file EbusJNIServer.dll must have been set up.

Parameter:

Protokol

These protocols are available:

ncacn_ip_tcp

Connection-oriented TCP over IP

ncacn_nb_tcp

Connection-oriented TCP over NetBIOS

ncacn_nb_ipx

Connection-oriented IPX over NetBEUI

ncacn_nb_nb

Connection-oriented NetBIOS over NetBEUI

ncacn_np

Connection-oriented named pipes

ncacn_spx

Connection-oriented SPX

ncacn_dnet_nsp

Connection-oriented DECnet transport

ncadg_ip_udp

Datagram (connectionless) UDP over IP

ncadg_ipx

Datagram (connectionless) IPX

ncalrpc

Local (cross-process) procedure call

 

Servername

Name or IP address of the NT server.

 

Endpoint

Endpoint

 

Sample:

H% = CONNECTION_SERVER("ncacn_ip_tcp","Server1","")

IF H% <> 0

THEN ERRORMES = "Connection to EBUS-C-Server failed."
ENDIF

 

See also:

SERVER