DataBasic Reference > Statements and Intrinsic Functions > Special Methods > %Connect

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

%Connect Special Method (databasic_sp_method_connect.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

%Connect Special Method

Connects to a language server and returns a connection object.

The first %Connect call will automatically set the default connection, which can be used by many of the other special methods. Deleting this connection object will result in no default connection being available. A new default connection can be set by using the %Set(Default) special method on a connection object.

Syntax

{Con =} %CONNECT(JAVA{,port{,system{,timeout}}})

Syntax Elements

JAVA Language server name
port Port number language server is using (default is 3090) 
system Host name of system running language server (default "localhost")
timeout Connection timeout in seconds (default is wait forever)

Comment

A port number of zero uses the default port.

System may be an I/P address.

Examples

%CONNECT(JAVA)

Make a connection on the default port (automatically becomes default connection)

SecondCon = %Connect(JAVA, 0, "fork")

Create a second connection to a JAVA server on an alternate host using the default port.

See Also

Special Methods

RealityV15.1 (MoTW) Revision 7Comment on this topic