The UDP Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / UDP Object  
Properties Address Broadcast PendingMessageCount Property
Methods Bind Close DoRoutine GetSockOptInt SendTextTo SendTo SetCallbacks SetSockOptInt WOL
Properties

Address

Value BSTR
Access Get
Notes User friendly address. For example "192.168.1.1:300"

Broadcast

Value BOOL
Access Get, Put
Notes

PendingMessageCount

Value ULONG
Access Get
Notes

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes For storing run-time variables
Methods

Bind

Return Value long
Arguments:
Notes

Close

Return Value
Notes

GetSockOptInt

Return Value int
Arguments:
  • int level
  • int optName
Notes winsock Keyword: getsockopt

SendTextTo

Return Value long
Arguments:
  • address
  • BSTR text
  • VARIANT_BOOL convertToANSI
Notes

SendTo

Return Value long
Arguments:
Notes

SetCallbacks

Return Value
Arguments:
  • Object callbackFuncs
Notes
  • The callback can be a function or a script module
  • Callback function must be defined as:
    function OnDataReceived(udpObject, fromAddress, buffer)
    {
    }
    

SetSockOptInt

Return Value long
Arguments:
  • int level
  • int optName
  • int value
Notes winsock Keyword: setsockopt

WOL

Return Value
Arguments:
  • BSTR macAddress
  • ULONG timeout (Optional, default(15000))
Notes
  • Wake on LAN
  • The MAC Address must be formated like "aa-bb-cc-dd-ee-ff".