SetConnectionProperty

ホスト名、タイアウト時間など、サーバー接続設定プロパティを設定します。

構文

ASCII バージョン
void setConnectionProperty(const char* name, const char* value) 
Unicode バージョン
void setConnectionProperty(const	UnicodeString name, const UnicodeString	value) 

パラメータ

  • Name — 接続プロパティの名前。HOST など。
  • Value — 接続プロパティの値。"www.myhost.com" など。

結果

サーバーに接続するための設定プロパティが設定されます。

ASCII バージョン
SmartPointer<Server> server =new Server() 
server->setConnectionProperty(Server::HOST,"localhost"); 
server->setConnectionProperty(Server::PORT, "8080");
Unicode バージョン

ASCII バージョンと同じです。または、以下のようになります。

SmartPointer<Server> server =new Server() 
UnicodeString host="localhost";// Or input unicode string 
server->setConnectionProperty(Server::HOST, host);