SGC 프로토콜
원격 프로시저 호출, 발행-구독 메시징, 트랜잭션 작업, QoS, 메시지 확인을 제공하는 JSON-RPC 2.0 기반 커스텀 프로토콜이에요.
원격 프로시저 호출, 발행-구독 메시징, 트랜잭션 작업, QoS, 메시지 확인을 제공하는 JSON-RPC 2.0 기반 커스텀 프로토콜이에요.
eSeGeCe의 네이티브 Pub/Sub + RPC 서브프로토콜이에요 — 채널, 큐 레벨, 세션 재개, 트랜잭션을 지원해요. Delphi / C++ Builder / .NET 간 와이어 호환이에요.
TsgcWSPClient_sgc
sgcWebSockets 네이티브 서브프로토콜 (WebSocket 위에서)
Windows, macOS, Linux, iOS, Android
Standard / Professional / Enterprise
TsgcWebSocketServer와 TsgcWebSocketClient 위에 서버 + 클라이언트 서브프로토콜 쌍을 놓으세요.
uses
sgcWebSocket, sgcWebSocket_Server, sgcWebSocket_Protocol_sgc_Server,
sgcWebSocket_Protocol_sgc_Client, sgcWebSocket_Types;
var
WSServer: TsgcWebSocketServer;
ServerProto: TsgcWSPServer_sgc;
WSClient: TsgcWebSocketClient;
ClientProto: TsgcWSPClient_sgc;
begin
// --- server side -----
WSServer := TsgcWebSocketServer.Create(nil);
WSServer.Port := 80;
ServerProto := TsgcWSPServer_sgc.Create(nil);
ServerProto.Server := WSServer;
WSServer.Active := True;
// --- client side -----
WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := '127.0.0.1';
WSClient.Port := 80;
ClientProto := TsgcWSPClient_sgc.Create(nil);
ClientProto.Client := WSClient;
WSClient.Active := True;
// publish / subscribe through a named channel
ClientProto.Subscribe('orders');
ClientProto.Publish('{"id":42}', 'orders', '', queueLevel0);
ClientProto.RPC('call-1', 'getQuote', 'AAPL');
end;
5개의 published 속성, 11개의 메서드, 15개의 이벤트 — 컴포넌트 레퍼런스에서 가져왔어요.
Published 속성: Client, Broker, Guid.
Published 속성: QoS.
이벤트: OnConnect, OnDisconnect, OnError.
메서드: WriteData.
Published 속성: Version.
메서드: Subscribe, UnSubscribe, UnSubscribeAll.
이 컴포넌트가 구현하는 프로토콜의 공인 출처예요.