Jazz Soft お問い合わせ   JazzSoft@live.com     日本語   英語  日本語  中国語(繁体字)  中国語(簡体字)
工場自動化と歩留り管理ソリューション 
Skip Navigation Linksホーム > 製品一覧 > Savoy > Savoy HSMS リファレンス > プロパティ > Connect

Jazz Softは2024年、日本からニューヨークに移転しました。

Savoy HSMS リファレンス   

プロパティ
Appearance
BorderStyle
Connect
IniFileName
IniSection
IPAddress
Log
LogBakCount
LogFileName
LogSize
LogVerbose
MyHostName
MyPortNumber
PortNumber
Selected
Server
T3
T5
T6
T7
T8

メソッド
AboutBox
Disconnect
LoadIniFile
Send
Setup
ToIPAddress

イベント
Connected
Disconnected
Problem
Received
SelChanged

Connect Property

Gets or sets the HSMS connection status. If Connect property is set to true where Server property is false (client), SavoyHsms control will attempt to establish connection. If connection has not been established, Connect property will be set to false.

If Connect property is set to true where Server property is true (server), SavoyHsms control will attempt to open server port and start listening to prepare for future incoming connection. At this time connection has not been established until client connected server. Therefore, even no connection was made, Connect property would be True, when server port was opened.

If user sets False to Connect property, existing connection will be disconnected. User doesn’t have to worry about connection to make sure it is disconnected when application is closing. SavoyHsms control will take care disconnection automatically. When Server property was set to True and Connected property is set to False, all existing connections with clients will be disconnected.

構文

Visual Basic

Connect As Boolean


Visual C++

BOOL GetConnect()
void SetConnect(BOOL)

戻り値

使用例

Visual Basic

.IPAddress = "hsms_server"
.PortNumber = 5000
.MyPortNumber = 0
.Server = False
.Connect = True ' Open
If Not .Connect then
  MsgBox "Cannot connect to server!"
End If


Visual C++

m_ctrl.SetIPAddress("hsms_server");
m_ctrl.SetPortNumber(5000);
m_ctrl.SetLocalPortNumber(0);
m_ctrl.SetServer(false);
m_ctrl.SetConnect(true); // Open
if(!m_ctrl.GetConnect())
  MessageBox("Cannot connect to server!");

特記事項

If Connect property on server side was set to False, connection would be disconnected. Therefore, Connect property on client side would also be set to False.

参照

お問い合わせ   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.