IROAsyncICSSocket

Overview

The IROAsyncICSSocket interface is used in the TROIcsTCPConnection that implements the TCP connection provided by the Internet Suite library (ICS), which is shipped with Remoting SDK.

This interface represents only one function, which returns the object that realizes the current interface.

For example, the IROAsyncICSSocket interface can be used in the custom ICS TCP server to disconnect client sessions.

procedure TROCustomICSTCPServer.DisconnectClients(aClients: TInterfaceList);
var
  i: integer;
  ClientsConnection: TROIcsTCPConnection;
begin
  aClients.Lock;
  try
    for i := aClients.Count-1 downto 0 do begin
      ClientsConnection := IROAsyncICSSocket(aClients[i]).GetSelf;
      ClientsConnection.ClearClientSocket;  
    end;
  finally
    aClients.Unlock;
  end;
  aClients.Clear;
end;

Location

Implemented in

Required Methods


GetSelf

Returns the object that realizes the current interface.

function GetSelf: TROIcsTCPConnection

See Also