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
|
Gets or sets the IP address of passive entity computer for HSMS connection. IPAddress property will be ignored if the Server property is set to true, because server listens incoming connection.
When connecting local computer (same computer), use “127.0.0.1” or “” (empty) string.
It is possible to use computer name instead of IP address.
構文
|
CString GetIPAddress()
void SetIPAddress(LPCTSTR)
|
戻り値
使用例
|
.IPAddress = ""
.PortNumber = 5000
.LocalPortNumber = 0
.Server = False
.Connect = True ‘ Open
If Not .Connect then
MsgBox "Cannot connect to server!"
End If
|
|
m_ctrl.SetIPAddress("");
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!");
|
特記事項
Persistent property.
参照
|
|