SetConnectionProperty
ホスト名、タイアウト時間など、サーバー接続設定プロパティを設定します。
構文
void setConnectionProperty(const char* name, const char* value)
void setConnectionProperty(const UnicodeString name, const UnicodeString value)
パラメータ
- Name — 接続プロパティの名前。HOST など。
- Value — 接続プロパティの値。"www.myhost.com" など。
結果
サーバーに接続するための設定プロパティが設定されます。
例
SmartPointer<Server> server =new Server()
server->setConnectionProperty(Server::HOST,"localhost");
server->setConnectionProperty(Server::PORT, "8080");
ASCII バージョンと同じです。または、以下のようになります。
SmartPointer<Server> server =new Server()
UnicodeString host="localhost";// Or input unicode string
server->setConnectionProperty(Server::HOST, host);