Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Pike Module Reference:

module version 1.1, prepared

  MODULE Public
Modules
Protocols

  MODULE Public.Protocols
Modules
Stomp

  MODULE Public.Protocols.Stomp
Classes
Client
protocol

  CLASS Public.Protocols.Stomp.Client
Methods
abort()
begin()
commit()
connect()
create()
get_session()
send()
set_auth()
subscribe()
unsubscribe()
Description

this is a Stomp client.


Inherit protocol

  • .protocol

  • Method create

    void Public.Protocols.Stomp.Client()->create()


    Method set_auth

    void Public.Protocols.Stomp.Client()->set_auth(string u, string p)


    Method get_session

    string Public.Protocols.Stomp.Client()->get_session()


    Method connect

    void Public.Protocols.Stomp.Client()->connect(string host, int port)


    Method begin

    string Public.Protocols.Stomp.Client()->begin(int(0..1)|void receipt)

    Description

    begin a transaction.

    Returns

    the transaction identifier string


    Method commit

    int Public.Protocols.Stomp.Client()->commit(string txid, int(0..1)|void receipt)

    Description

    commit a transaction

    Parameter txid

    the transaction identifier of the transaction to commit.

    Parameter receipt

    should we await confirmation of this command from the server?


    Method abort

    int Public.Protocols.Stomp.Client()->abort(string txid, int(0..1)|void receipt)

    Description

    abort a transaction, rolling back any messages

    Parameter txid

    the transaction identifier of the transaction to abort.

    Parameter receipt

    should we await confirmation of this command from the server?


    Method subscribe

    int Public.Protocols.Stomp.Client()->subscribe(string destination, function callback, int(0..1)|void acknowledge, int(0..1)|void receipt)

    Description

    subscribe to a topic or queue

    Parameter callback

    a function that takes receives a Frame object for each message delivered and returns one to acknowledge or zero to refuse receipt of the message

    Parameter acknowledge

    should we require recieved messages to be acknowledged?

    Parameter receipt

    should we await confirmation of this command from the server?


    Method unsubscribe

    int Public.Protocols.Stomp.Client()->unsubscribe(string destination, int(0..1)|void receipt)

    Description

    unsubscribe from a topic or queue.

    Parameter destination

    the queue or topic we wish to unsubscribe from.

    Parameter receipt

    should we await confirmation of this command from the server?


    Method send

    int Public.Protocols.Stomp.Client()->send(string destination, string message, mapping|void headers, string|void txid, int(0..1)|void receipt)

    Description

    send a message to a queue or topic

    Parameter destination

    the name of the topic or queue to send the message to.

    Parameter message

    the contents of the message to be sent

    Parameter headers

    a list of headers we wish to include in the message

    Parameter txid

    transaction identifier of the transaction we wish to associate this message with.

    Parameter receipt

    should we await confirmation of this command from the server?

      CLASS Public.Protocols.Stomp.protocol
    Description

    this is the low level protocol handler for Stomp. for more information, see the stomp hompage http://stomp.codehaus.org

    gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University