STOMP

 

Rewrite of STOMP client based on libstomp.

miyako/4d-plugin-stomp


  • サンプルプログラムは,プロジェクトモードで開いてください。(17r5以降)

  • オブジェクト型を使用しています。(v17以降)

  • スレッドセーフです。

  • 動作確認にはActiveMQを使用しました。

stomp:=STOMP Connect (host;port)
Parameter
Type
Description
host
TEXT
port
LONGINT
stomp
LONGINT
context ID
error:=STOMP Disconnect (stomp)
Parameter
Type
Description
stomp
LONGINT
context ID
error
LONGINT
see below

Error codes are negative APR_ERRORNO or -1 if the context ID was invalid. A winsock error code (which may be different across platforms) is returned in case of low level network failure.

error:=_o_STOMP Write (stomp;command;body;headerNames;headerValues{;timeout})
error:=_o_STOMP Read (stomp;command;body;headerNames;headerValues{;timeout})
Parameter
Type
Description
stomp
LONGINT
context ID
command
TEXT
body
TEXT
headerNames
ARRAY TEXT
headerValues
ARRAY TEXT
timeout
LONGINT
I/O timeout in milliseconds; default is 3000
error
LONGINT
see below
error:=STOMP Write (stomp;command;body;headers{;timeout})
error:=STOMP Read (stomp;command;body;headers{;timeout})
Parameter
Type
Description
stomp
LONGINT
context ID
command
TEXT
body
TEXT
headers
OBJECT
key value pair of header names and values
timeout
LONGINT
I/O timeout in milliseconds; default is 3000
error
LONGINT
see below

Error codes are negative APR_ERRORNO or -1 if the context ID was invalid. A winsock error code (which may be different across platforms) is returned in case of low level network failure.