Swing HSMS 詳細資料
Properties
Active
Appearance
BorderStyle
IniFile
IniSection
IPAddress
LocalPortNumber
Log
LogFile
MaxLength
PortNumber
Selected
Server
Show
T3
T5
T6
T7
T8
Methods
Config
ConvertIPAddress
Disconnect
GetHostName
LoadIni
Send
Events
Connected
Errors
Read
SelConnection
|
This event occurs at communication error.
Syntax
|
Sub Errors(pszIPAddress As String, lPortNumber As Long, sError As Integer, pszInfo As String)
|
|
void OnErrors(LPCTSTR pszIPAddress, long lPortNumber, short sError, LPCTSTR pszInfo)
|
pszIPAddress | IP address of message sender. |
lPortNumber | TCP port number of message sender. |
sError | Error code. (see below) |
pszInfo | Additional information. This argument can not be used now. |
Return Value
Example
Remarks
Errors from Swing
-1 | Cannot send out message. |
-2 | Received message longer than MaxLength Proerty. |
-3 | (Not in use) |
-4 | T8 time out. |
-5 | T3 time out. |
-6 | T5 time out. |
-7 | T6 time out. |
-8 | T7 time out. |
Errors from WinSock
10093 | WSANOTINITIALISED | Socket has not been initialized. |
10050 | WSAENETDOWN | Network subsystem error. |
10048 | WSAEADDRINUSE | Socket local address is in use. |
10014 | WSAEFAULT | Invalid user address (like invalid character). |
10036 | WSAEINPROGRESS | Service provider is in progress. |
10049 | WSAEADDRNOTAVAIL | Remote address can not be available. |
10047 | WSAEAFNOSUPPORT | Cannot use specified address family for this socket. |
10061 | WSAECONNREFUSED | Connection has been refused. |
10039 | WSAEDESTADDRREQ | ? |
10022 | WSAEINVAL | Invalid listening socket. |
10056 | WSAEISCONN | Already connected. |
10024 | WSAEMFILE | ? |
10051 | WSAENETUNREACH | Cannot reach to network. |
10055 | WSAENOBUFS | Buffer size is not enough. |
10038 | WSAENOTSOCK | Not a socket. |
10060 | WSAETIMEDOUT | Time out before established connection. |
10035 | WSAEWOULDBLOCK | Cannot execute right now. |
See Also
|
|