Connect
Reads the properties to determine which gateway connection to be used and makes a connection to the server.
Note: .NET uses the HTTP, HTTPS, or SOCKET server connection protocol. HTTP and HTTPS logically
establish a client connection but do not actually connect to the server until a
GetService or Process method is invoked. The SOCKET protocol establishes a
connection to the server when Connect is invoked.
Syntax
public void Connect()
Parameters
None.
Results
None.
Exceptions
- "Connection type not supported."
Example
Server server = new Server();
// set connect property to the server
server.SetConnectionProperty(Server.HOST, "localhost");
server.SetConnectionProperty(Server.PORT, "8080");
// more connection properties to be set
// Connect to server
server.Connect();