SetConnectionProperty
Establishes the server connection configuration properties, such as host name and length of timeout.
Syntax
public void SetConnectionProperty(String name, String value)
Parameters
- Name — the name of the connection property, such as HOST
- Value — the value for the name of the connection property, such as "www.myhost.com"
Results
None.
Example
Server server = new Server();
server.SetConnectionProperty(Server.HOST, "localhost");
server.SetConnectionProperty(Server.PORT, "8080");
//Connect to server
server.Connect();