Jazz Soft Contact us?   JazzSoft@live.com     English   English  Japanese  Chinese (Traditional)  Chinese (Simlified)
Factory Automation & Yield Management Solution Provider 
Skip Navigation LinksHome > Products > Swing > Swing HSMS Reference > Events > Errors

Swing HSMS Reference   

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

Errors Event

This event occurs at communication error.

Syntax

Visual Basic

Sub Errors(pszIPAddress As String, lPortNumber As Long, sError As Integer, pszInfo As String)


Visual C++

void OnErrors(LPCTSTR pszIPAddress, long lPortNumber, short sError, LPCTSTR pszInfo)


ArgumentDescription
pszIPAddressIP address of message sender.
lPortNumberTCP port number of message sender.
sErrorError code. (see below)
pszInfoAdditional information. This argument can not be used now.

Return Value

Example

Visual Basic



Visual C++


Remarks

Errors from Swing

Error CodeDescription
-1Cannot send out message.
-2Received message longer than MaxLength Proerty.
-3(Not in use)
-4T8 time out.
-5T3 time out.
-6T5 time out.
-7T6 time out.
-8T7 time out.

Errors from WinSock

Error CodeDefinitionDescription
10093WSANOTINITIALISEDSocket has not been initialized.
10050WSAENETDOWNNetwork subsystem error.
10048WSAEADDRINUSESocket local address is in use.
10014WSAEFAULTInvalid user address (like invalid character).
10036WSAEINPROGRESSService provider is in progress.
10049WSAEADDRNOTAVAILRemote address can not be available.
10047WSAEAFNOSUPPORTCannot use specified address family for this socket.
10061WSAECONNREFUSEDConnection has been refused.
10039WSAEDESTADDRREQ?
10022WSAEINVALInvalid listening socket.
10056WSAEISCONNAlready connected.
10024WSAEMFILE?
10051WSAENETUNREACHCannot reach to network.
10055WSAENOBUFSBuffer size is not enough.
10038WSAENOTSOCKNot a socket.
10060WSAETIMEDOUTTime out before established connection.
10035WSAEWOULDBLOCKCannot execute right now.

See Also

Contact us?   JazzSoft@live.com
  Copyright © 1997 - 2018 Jazz Soft, Inc.