You've already forked lazarus-ccr
Updated to use FPC's servers (TCP and HTTP) implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1780 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
|
<Version Value="9"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Version Value="7"/>
|
|
||||||
<General>
|
<General>
|
||||||
<Flags>
|
<Flags>
|
||||||
<MainUnitHasUsesSectionForAllUnits Value="False"/>
|
<MainUnitHasUsesSectionForAllUnits Value="False"/>
|
||||||
@ -12,11 +12,13 @@
|
|||||||
</Flags>
|
</Flags>
|
||||||
<SessionStorage Value="InProjectDir"/>
|
<SessionStorage Value="InProjectDir"/>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<TargetFileExt Value=".exe"/>
|
|
||||||
</General>
|
</General>
|
||||||
<VersionInfo>
|
<VersionInfo>
|
||||||
<ProjectVersion Value=""/>
|
<StringTable ProductVersion=""/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
|
<BuildModes Count="1">
|
||||||
|
<Item1 Name="default" Default="True"/>
|
||||||
|
</BuildModes>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||||
@ -28,11 +30,6 @@
|
|||||||
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
|
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
|
||||||
</local>
|
</local>
|
||||||
</RunParams>
|
</RunParams>
|
||||||
<RequiredPackages Count="1">
|
|
||||||
<Item1>
|
|
||||||
<PackageName Value="wst_indy"/>
|
|
||||||
</Item1>
|
|
||||||
</RequiredPackages>
|
|
||||||
<Units Count="4">
|
<Units Count="4">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="tcp_server.pas"/>
|
<Filename Value="tcp_server.pas"/>
|
||||||
@ -57,24 +54,26 @@
|
|||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="8"/>
|
<Version Value="9"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Target>
|
<Target>
|
||||||
<Filename Value="tcp_server.exe"/>
|
<Filename Value="tcp_server.exe"/>
|
||||||
</Target>
|
</Target>
|
||||||
<SearchPaths>
|
<SearchPaths>
|
||||||
<IncludeFiles Value="..\..\;..\"/>
|
<IncludeFiles Value="..\..;.."/>
|
||||||
<OtherUnitFiles Value="..\;..\..\;..\..\wst_rtti_filter\;$(LazarusDir)\others_package\synapse\"/>
|
<OtherUnitFiles Value="..;..\..;..\..\wst_rtti_filter;$(LazarusDir)\others_package\synapse"/>
|
||||||
<UnitOutputDirectory Value="obj"/>
|
<UnitOutputDirectory Value="obj"/>
|
||||||
<SrcPath Value="$(LazarusDir)\others_package\synapse\"/>
|
<SrcPath Value="$(LazarusDir)\others_package\synapse"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Parsing>
|
<Parsing>
|
||||||
<SyntaxOptions>
|
<SyntaxOptions>
|
||||||
<IncludeAssertionCode Value="True"/>
|
<IncludeAssertionCode Value="True"/>
|
||||||
<UseAnsiStrings Value="True"/>
|
|
||||||
</SyntaxOptions>
|
</SyntaxOptions>
|
||||||
</Parsing>
|
</Parsing>
|
||||||
<Other>
|
<Other>
|
||||||
|
<CompilerMessages>
|
||||||
|
<UseMsgFile Value="True"/>
|
||||||
|
</CompilerMessages>
|
||||||
<CustomOptions Value="-dINDY_10"/>
|
<CustomOptions Value="-dINDY_10"/>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
</Other>
|
</Other>
|
||||||
|
@ -28,8 +28,9 @@ uses
|
|||||||
base_binary_formatter, server_binary_formatter,
|
base_binary_formatter, server_binary_formatter,
|
||||||
metadata_service, metadata_service_imp, metadata_service_binder,
|
metadata_service, metadata_service_imp, metadata_service_binder,
|
||||||
server_listener ,
|
server_listener ,
|
||||||
|
fpc_tcp_server,
|
||||||
//synapse_tcp_server,
|
//synapse_tcp_server,
|
||||||
indy_tcp_server,
|
//indy_tcp_server,
|
||||||
|
|
||||||
user_service_intf, user_service_intf_binder, user_service_intf_imp , imp_helper,
|
user_service_intf, user_service_intf_binder, user_service_intf_imp , imp_helper,
|
||||||
server_service_xmlrpc;
|
server_service_xmlrpc;
|
||||||
@ -53,7 +54,8 @@ begin
|
|||||||
WriteLn(Format('WST sample TCP Server listning on "%d"',[sSERVER_PORT]));
|
WriteLn(Format('WST sample TCP Server listning on "%d"',[sSERVER_PORT]));
|
||||||
WriteLn('Hit <enter> to stop.');
|
WriteLn('Hit <enter> to stop.');
|
||||||
//listener := TwstSynapseTcpListener.Create();
|
//listener := TwstSynapseTcpListener.Create();
|
||||||
listener := TwstIndyTcpListener.Create();
|
//listener := TwstIndyTcpListener.Create();
|
||||||
|
listener := TwstFPCTcpListener.Create();
|
||||||
listener.Start();
|
listener.Start();
|
||||||
ReadLn;
|
ReadLn;
|
||||||
end.
|
end.
|
||||||
|
@ -8,8 +8,9 @@ uses
|
|||||||
Classes, SysUtils, TypInfo, {$IFDEF WINDOWS}ActiveX,{$ENDIF}
|
Classes, SysUtils, TypInfo, {$IFDEF WINDOWS}ActiveX,{$ENDIF}
|
||||||
user_service_intf_proxy,
|
user_service_intf_proxy,
|
||||||
//same_process_protocol, synapse_tcp_protocol, synapse_http_protocol, library_protocol,
|
//same_process_protocol, synapse_tcp_protocol, synapse_http_protocol, library_protocol,
|
||||||
same_process_protocol, indy_tcp_protocol, indy_http_protocol, library_protocol,
|
//same_process_protocol, indy_tcp_protocol, indy_http_protocol, library_protocol,
|
||||||
// same_process_protocol, ics_tcp_protocol, ics_http_protocol, library_protocol,
|
// same_process_protocol, ics_tcp_protocol, ics_http_protocol, library_protocol,
|
||||||
|
same_process_protocol, fpc_tcp_protocol, fpc_http_protocol, library_protocol,
|
||||||
soap_formatter, binary_formatter, json_formatter,
|
soap_formatter, binary_formatter, json_formatter,
|
||||||
user_service_intf, xmlrpc_formatter, service_intf;
|
user_service_intf, xmlrpc_formatter, service_intf;
|
||||||
|
|
||||||
@ -244,10 +245,13 @@ begin
|
|||||||
{$IFEND}
|
{$IFEND}
|
||||||
// SYNAPSE_RegisterTCP_Transport();
|
// SYNAPSE_RegisterTCP_Transport();
|
||||||
// SYNAPSE_RegisterHTTP_Transport();
|
// SYNAPSE_RegisterHTTP_Transport();
|
||||||
INDY_RegisterTCP_Transport();
|
// INDY_RegisterTCP_Transport();
|
||||||
INDY_RegisterHTTP_Transport();
|
// INDY_RegisterHTTP_Transport();
|
||||||
// ICS_RegisterTCP_Transport();
|
// ICS_RegisterTCP_Transport();
|
||||||
// ICS_RegisterHTTP_Transport();
|
// ICS_RegisterHTTP_Transport();
|
||||||
|
FPC_RegisterTCP_Transport();
|
||||||
|
FPC_RegisterHTTP_Transport();
|
||||||
|
|
||||||
LIB_Register_Transport();
|
LIB_Register_Transport();
|
||||||
WriteLn('Sample Application using Web Services Toolkit');
|
WriteLn('Sample Application using Web Services Toolkit');
|
||||||
ReadFormatType();
|
ReadFormatType();
|
||||||
|
Reference in New Issue
Block a user