AMQP 1.0 Protocol
The OASIS standard for advanced messaging. Connect to Azure Service Bus, Apache Qpid, and any AMQP 1.0 compliant broker from Delphi.
The OASIS standard for advanced messaging. Connect to Azure Service Bus, Apache Qpid, and any AMQP 1.0 compliant broker from Delphi.
AMQP 1.0 subprotocol client — sessions, sender and receiver links, Claims-Based-Security tokens for Azure Service Bus, over a WebSocket or raw-TCP carrier.
TsgcWSPClient_AMQP1
Windows, macOS, Linux, iOS, Android
Professional / Enterprise
CreateSession, then CreateSenderLink / CreateReceiverLink, then send and receive. CBS helpers wrap Azure Service Bus SAS / OAuth.
uses
sgcWebSocket, sgcWebSocket_Protocol_AMQP1_Client, sgcAMQP1_Classes;
var
WSClient: TsgcWebSocketClient;
AMQP1: TsgcWSPClient_AMQP1;
oSession: TsgcAMQP1Session;
oSender: TsgcAMQP1SenderLink;
begin
WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := 'broker.example.com';
WSClient.Port := 5673;
AMQP1 := TsgcWSPClient_AMQP1.Create(nil);
AMQP1.Client := WSClient;
AMQP1.OnAMQPConnect := AMQPConnect;
AMQP1.OnAMQPMessage := AMQPMessage;
AMQP1.OnAMQPSessionOpen := AMQPSessionOpen;
AMQP1.OnAMQPLinkOpen := AMQPLinkOpen;
WSClient.Active := True;
oSession := AMQP1.CreateSession;
oSender := AMQP1.CreateSenderLink(oSession, '/queue/orders');
// Receivers handle pushed deliveries through OnAMQPMessage
AMQP1.CreateReceiverLink(oSession, '/queue/orders');
end;
5 published properties, 12 methods, 14 events — pulled from the component reference.
Published properties: Client, Broker, Guid.
Events: OnAMQPMessage, OnAMQPMessageSent, OnAMQPMessageSentAck.
Events: OnAMQPSASLAuthentication.
Methods: CreateSession, CloseSession.
Events: OnAMQPConnect, OnAMQPDisconnect, OnAMQPClose.
Methods: WriteData.
Authoritative sources for the protocols this component implements.
Przejdź bezpośrednio do dokumentacji komponentu, pobierz gotowy do uruchomienia projekt demonstracyjny i pobierz wersję próbną.
| Projekt demonstracyjny — Demos\Protocols\AMQP\100 Gotowy do uruchomienia projekt przykładowy. Dostarczany w pakiecie sgcWebSockets — pobierz wersję próbną poniżej. | Otwórz | |
| Dokument techniczny (PDF) Funkcje, szybki start, przykłady kodu dla Delphi i C++ Builder oraz odniesienia do źródeł — tylko ten komponent. | Otwórz | |
| Podręcznik użytkownika (PDF) Kompleksowy podręcznik obejmujący każdy komponent biblioteki. | Otwórz |