Jazz Soft 您要联络吗?   JazzSoft@live.com     简体字汉语   英语  日语  繁体字汉语  简体字汉语
提供半导体工厂自动化与生产效率改善法 
Skip Navigation Links首页 > 产品一览 > Savoy > Savoy Socket 详细资料 > Properties > IPAddress

Jazz Soft has been moved from Japan to New York in 2024.

Savoy Socket 详细资料   

Properties
Appearance
BorderStyle
Connect
IniFileName
IniSection
IPAddress
MyPortNumber
PortNumber
Server

Methods
AboutBox
Disconnect
LoadIniFile
Send
Setup

Events
Connected
Disconnected
Problem
Received

IPAddress Property

Gets or sets the IP address of passive entity computer for TCP/IP 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.

Syntax

Visual Basic

IPAddress As String


Visual C++

CString GetIPAddress()
void SetIPAddress(LPCTSTR)

Return Value

Example

Visual Basic

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


Visual C++

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!");

Remarks

Persistent property.

See Also

您要联络吗?   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.