Tuesday, 03 December 2019
  1 Replies
  3K Visits
  Subscribe
Hello,
Can you confirm that your Websocket can be used with Delphi for linux applications ?
And C ++ builder when it will be available ?
Thanks
4 years ago
·
#110
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
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf
· Insert · Remove
  Upload Files (Maximum 10MB)