修改sgcWebSockets-v4.1.0支持XE10.3.2

修改sgcWebSockets-v4.1.0支持XE10.3.2

xe10.3.1安装的是简化版本,没有Intraweb,需要先安装。

操作步骤

安装Delphi.10.3.2.v26.0.34749.6593.Lite.v15.2.iso
准备Intraweb 15.0.18(已经包含)
准备sgcWebSockets_v4.1.0 全源码版本(已经包含)

1.安装Intraweb 15.0.18;
2. 解压sgcWebSockets_v4.1.0 ;
3. 打开 安装目录\sgcWebSockets-v4.1.0\Source下的sgcVer.inc;
4. 编辑sgcVer.inc,增加如下内容:

  {$IFDEF VER330} { Delphi  10.3}
  {$DEFINE D2006}
  {$DEFINE D2007}
  {$DEFINE D2009}
  {$DEFINE D2010}
  {$DEFINE DXE}
  {$DEFINE DXE2}
  {$DEFINE DXE3}  
  {$DEFINE DXE4} 
  {$DEFINE DXE5} 
  {$DEFINE DXE6} 
  {$DEFINE DXE7} 
  {$DEFINE DXE8} 
  {$DEFINE D10} 
  {$DEFINE D10_1}
  {$DEFINE D10_2}
  {$DEFINE D10_3}

  {$DEFINE INDY10_1}
  {$DEFINE INDY10_2}
  {$DEFINE INDY10_5_5}
  {$DEFINE INDY10_5_7}
  {$DEFINE INDY10_6}
  {$DEFINE INDY10_6_2_5366}
  
  {$IFNDEF BCB}
    {$IFNDEF MACOS}
    {$IFNDEF ANDROID}
      {$DEFINE IWIX}
      {$DEFINE IWXI}
      {$DEFINE IWXIV}  
    {$ENDIF}
    {$ENDIF}

	{$IFNDEF NEXTGEN}
	  {$DEFINE SGC_JSON_INTF}
	{$ENDIF}
  {$ENDIF}
{$ENDIF}
  1. 打开 安装目录\sgcWebSockets-v4.1.0\Packages,复制文件名包含10_2的所有文件,并替换10_2为10_3(包含文件内容内的值),编辑sgcWebSocketsD10_3.dpk,将 单元 Intraweb写成Intraweb_15_D10_3

正式安装

1.先添加library环境参数:

XXX\Source源目录,XXX\libD10_3\win32和XXX\libD10_3\win64,没有编译前,此两个目录是不存在的
源目录:XXX\Source
没有编译前,下面两个目录是不存在的,可以编译后再加,也可以先与编辑进去
32位:XXX\libD10_3\win32
64位:XXX\libD10_3\win64

打开文件sgcWebSocketsD10_3.groupproj,开始编译吧!

CSDN下载地址:sgcWebSockets4源码版,支持D7~XE10.3.2

负载平衡,MQTT协议支持,修正大量Bug,最新稳定版 Delphi7/XE6/XE7/XE8 ******************************************************* sgcWebSockets ******************************************************* [*] : Bug [+] : New [-] : Deleted [/] : Breaking changes Versions -------- 4.1.0: 2017 April [+] : Added support for Rad Studio 10.2 Tokyo. [+] : Added support for Linux compiler. [+] : MQTT client, added subscribe method. [+] : MQTT client, added unsubscribe method. [+] : MQTT client, added publish method. [+] : MQTT client, added Authentication property, allows to set user and password to authenticate against MQTT Server. [+] : MQTT client, added HeartBeat property, keeps alive connection. [+] : MQTT client, added LastWillTestament property, when client disconnects, sends a message to other connected clients. [+] : New Property "NotifyDeletes" in Dataset Server Protocol, if enabled (by default) broadcast deleted record to all clients. [+] : New Method "BroadcastRecord" in Dataset Server Protocol, sends dataset record values to all clients. [+] : New Method "MetaData" in Dataset Server Protocol, sends metadata info to a single client. [+] : New Method "Synchronize" in Dataset Server Protocol, sends dataset record values to a single client. [*] : Fixed Bug ReadTimeout and ConnectionTimeout in client component. [*] : Added Guid property to Client File Protocol. [*] : Fixed Bug Invalid Character when trying to access to built-in javascript libraries. [*] : Fixed Bug File Protocol when BufferSize was set to zero, file was not saved properly. [*] : Fixed Memory Leaks on NextGen compiler. [*] : Fixed WebRTC Chrome console errors.
------------------------------------------------------------------------------------------------------------------------------------------------- Installing sgcWebSockets in Rad Studio 7 - XE8 - 10.2 Tokyo ------------------------------------------------------------------------------------------------------------------------------------------------- 1) Unzip the files included into a directory {$DIR} 2) Add the directory where the files are unzipped {$DIR} to the Rad Studio library path under Tools, Environment options, Directories a) All Rad Studio Versions: Add the directory {$DIR}\source to the library path b) For specific Rad Studio version Rad Studio 7 : Add the directory {$DIR}\libD7 to the library path Rad Studio 2007 : Add the directory {$DIR}\libD2007 to the library path Rad Studio 2009 : Add the directory {$DIR}\libD2009 to the library path Rad Studio 2010 : Add the directory {$DIR}\libD2010 to the library path Rad Studio XE : Add the directory {$DIR}\libDXE to the library path Rad Studio XE2 : Add the directory {$DIR}\libDXE2\$(Platform) to the library path Rad Studio XE3 : Add the directory {$DIR}\libDXE3\$(Platform) to the library path Rad Studio XE4 : Add the directory {$DIR}\libDXE4\$(Platform) to the library path Rad Studio XE5 : Add the directory {$DIR}\libDXE5\$(Platform) to the library path Rad Studio XE6 : Add the directory {$DIR}\libDXE6\$(Platform) to the library path Rad Studio XE7 : Add the directory {$DIR}\libDXE7\$(Platform) to the library path Rad Studio XE8 : Add the directory {$DIR}\libDXE8\$(Platform) to the library path Rad Studio 10 : Add the directory {$DIR}\libD10\$(Platform) to the library path Rad Studio 10.1 : Add the directory {$DIR}\libD10_1\$(Platform) to the library path Rad Studio 10.2 : Add the directory {$DIR}\libD10_2\$(Platform) to the library path 3) Choose : File, Open and browse
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值