OEC Application Programming Interface

OECClient.Connect Method 

Establishes new connection to the OEC server.

public Void Connect(
   String Host,
   Int32 Port,
   String UserName,
   String Password,
   Boolean AutoReconnect
);

Parameters

Host
OEC Server host or address
Port
OEC Server port (usually 9200)
UserName
User name - case sensitive
Password
Password - case sensitive
AutoReconnect
If true, API will automatically restore connection when disconnected

Remarks

Throws an exception if network connection couldn't be established or if already connected. Note that OECClient will be ready for operations only when OnLoginComplete event was received. Client should also expect OnLoginFailed event if supplied login information is incorrect.

See Also

OECClient Class | OEC.API Namespace