By Guest on Tuesday, 03 December 2019
Posted in General
Replies 1
Likes 0
Views 3.1K
Votes 0
Hello,
Can you confirm that your Websocket can be used with Delphi for linux applications ?
And C ++ builder when it will be available ?
Thanks
Hello,

Yes, sgcWebSockets supports linux console applications, this is a simple server example:



program sgcWebSockets_linux;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils, sgcWebSocket;
var
oServer: TsgcWebSocketServer;
begin
try
oServer := TsgcWebSocketServer.Create(nil);
oServer.Port := 5000;
oServer.Active := True;

while oServer.Active do
Sleep(10);
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.



Most probably, C++ Builder will be supported too when available.

Kind regards,
Sergio
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post