Skip to content

Commit

Permalink
Add TPingClient to Services unit and new ShellNetwork unit with ping …
Browse files Browse the repository at this point in the history
…shell command
  • Loading branch information
ultibohub committed Nov 1, 2022
1 parent 8aefe39 commit 3531e15
Show file tree
Hide file tree
Showing 9 changed files with 1,066 additions and 62 deletions.
2 changes: 1 addition & 1 deletion source/__version.id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.235
2.5.239
1 change: 1 addition & 0 deletions source/rtl/ultibo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ ULTIBO_FONTS=Latin1_8x8 \
ULTIBO_EXTRAS=ConsoleShell \
RemoteShell \
ShellFilesystem \
ShellNetwork \
ShellUpdate \
ShellUSB \
WebStatus \
Expand Down
1 change: 1 addition & 0 deletions source/rtl/ultibo/Makefile.fpc
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ ULTIBO_FONTS=Latin1_8x8 \
ULTIBO_EXTRAS=ConsoleShell \
RemoteShell \
ShellFilesystem \
ShellNetwork \
ShellUpdate \
ShellUSB \
WebStatus \
Expand Down
18 changes: 7 additions & 11 deletions source/rtl/ultibo/core/arp.pas
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
Ultibo ARP (Address Resolution Protocol) unit.
Copyright (C) 2015 - SoftOz Pty Ltd.
Copyright (C) 2022 - SoftOz Pty Ltd.
Arch
====
Expand Down Expand Up @@ -47,10 +47,6 @@ interface

uses GlobalConfig,GlobalConst,GlobalTypes,GlobalSock,Threads,SysUtils,Classes,Network,Transport,Protocol,Ultibo,UltiboClasses;

//To Do //Look for:

//--

{==============================================================================}
{Global definitions}
{$INCLUDE GlobalDefines.inc}
Expand Down Expand Up @@ -1291,7 +1287,7 @@ function TARPTransport.AddAddress(const AAddress:TInAddr;const AHardware:THardwa
EventPulse(FAddressAdd);

{Reset Event (Manual Reset)}
EventReset(FAddressAdd); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressAdd);} {Not required, reset by EventPulse}

{Lock Address}
if ALock then if AState = NETWORK_LOCK_READ then Result.ReaderLock else Result.WriterLock;
Expand Down Expand Up @@ -1358,7 +1354,7 @@ function TARPTransport.RemoveAddress(const AAddress:TInAddr;AAdapter:TNetworkAda
EventPulse(FAddressRemove);

{Reset Event (Manual Reset)}
EventReset(FAddressRemove); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressRemove);} {Not required, reset by EventPulse}

{Unlock Address}
Address.WriterUnlock;
Expand Down Expand Up @@ -1435,7 +1431,7 @@ procedure TARPTransport.FlushAddresses(All:Boolean);
EventPulse(FAddressRemove);

{Reset Event (Manual Reset)}
EventReset(FAddressRemove); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressRemove);} {Not required, reset by EventPulse}

{Unlock Address}
Current.WriterUnlock;
Expand Down Expand Up @@ -2734,7 +2730,7 @@ function TRARPTransport.AddAddress(const AAddress:TInAddr;const AHardware:THardw
EventPulse(FAddressAdd);

{Reset Event (Manual Reset)}
EventReset(FAddressAdd); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressAdd);} {Not required, reset by EventPulse}

{Lock Address}
if ALock then if AState = NETWORK_LOCK_READ then Result.ReaderLock else Result.WriterLock;
Expand Down Expand Up @@ -2801,7 +2797,7 @@ function TRARPTransport.RemoveAddress(const AAddress:TInAddr;AAdapter:TNetworkAd
EventPulse(FAddressRemove);

{Reset Event (Manual Reset)}
EventReset(FAddressRemove); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressRemove);} {Not required, reset by EventPulse}

{Unlock Address}
Address.WriterUnlock;
Expand Down Expand Up @@ -2878,7 +2874,7 @@ procedure TRARPTransport.FlushAddresses(All:Boolean);
EventPulse(FAddressRemove);

{Reset Event (Manual Reset)}
EventReset(FAddressRemove); //To Do //Critical //This can be removed now that EventPulse has been fixed ?
{EventReset(FAddressRemove);} {Not required, reset by EventPulse}

{Unlock Address}
Current.WriterUnlock;
Expand Down
6 changes: 3 additions & 3 deletions source/rtl/ultibo/core/globalconst.pas
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ interface
{Global constants}
const
{Version constants}
ULTIBO_RELEASE_DATE = '28 October 2022';
ULTIBO_RELEASE_DATE = '1 November 2022';
ULTIBO_RELEASE_NAME = 'Beetroot';
ULTIBO_RELEASE_VERSION = '2.5.235';
ULTIBO_RELEASE_VERSION = '2.5.239';
ULTIBO_RELEASE_VERSION_MAJOR = 2;
ULTIBO_RELEASE_VERSION_MINOR = 5;
ULTIBO_RELEASE_VERSION_REVISION = 235;
ULTIBO_RELEASE_VERSION_REVISION = 239;

FPC_COMPILER_VERSION = {$I %FPCVERSION%}; {The version of FPC used to compile the RTL}

Expand Down
4 changes: 2 additions & 2 deletions source/rtl/ultibo/core/protocol.pas
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
Ultibo Network Protocol interface unit.
Copyright (C) 2021 - SoftOz Pty Ltd.
Copyright (C) 2022 - SoftOz Pty Ltd.
Arch
====
Expand Down Expand Up @@ -4111,7 +4111,7 @@ function TProtocolSocket.SignalChange:Boolean;
Result:=(EventPulse(FSocketChange) = ERROR_SUCCESS);

{Reset Event (Manual Reset)}
Result:=Result and (EventReset(FSocketChange) = ERROR_SUCCESS);
{Result:=Result and (EventReset(FSocketChange) = ERROR_SUCCESS);} {Not required, reset by EventPulse}
end;

{==============================================================================}
Expand Down
Loading

0 comments on commit 3531e15

Please sign in to comment.