### Start Source: https://docs.remotingsdk.com/API/NET/Classes/NetworkServer Starts the server and opens the server channel. ```APIDOC ## Start ### Description Starts the server and opens the server channel to begin accepting connections. ``` -------------------------------- ### Start Server Source: https://docs.remotingsdk.com/API/NET/Classes/NetworkServer Starts the server and opens the communication channel. ```Oxygene method Start ``` ```C# void Start() ``` ```Swift func Start() ``` ```VB Sub Start() ``` -------------------------------- ### Setup Source: https://docs.remotingsdk.com/API/NET/Classes/SuperTcpServerChannelWorker Initializes the worker instance. ```APIDOC ## Setup() ### Description Performs the setup operations for the channel worker. ``` -------------------------------- ### Begin Source: https://docs.remotingsdk.com/API/NET/Classes/OpenApiJsonSerializer Starts the serialization process. ```Oxygene method Begin ``` ```C# void Begin() ``` ```Swift func Begin() ``` ```VB Sub Begin() ``` -------------------------------- ### Handle On Starting Event Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Invoked when the application server is starting. ```Oxygene method OnStarting ``` ```C# void OnStarting() ``` ```Swift func OnStarting() ``` ```VB Sub OnStarting() ``` -------------------------------- ### Install Server as Windows NT Service Source: https://docs.remotingsdk.com/Servers/Deployment/Windows Use the install parameter to register the server application as a background Windows service. ```text MyServer.exe --install ``` -------------------------------- ### Start Method Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROService Initiates the service startup process. ```Delphi procedure Start(Sender: TService; var Started: Boolean) ``` -------------------------------- ### Open() Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncTcpServer Starts the server to listen for incoming connections. ```APIDOC ## void Open() ### Description This method causes the server to start listening for connections. You may use the Active property to test for success. ``` -------------------------------- ### Setup Server Source: https://docs.remotingsdk.com/API/NET/Classes/NetworkServer Initializes the server with the provided configuration. ```Oxygene method SetupServer(configuration: INetworkServerConfiguration) ``` ```C# void SetupServer(INetworkServerConfiguration configuration) ``` ```Swift func SetupServer(_ configuration: INetworkServerConfiguration) ``` ```VB Sub SetupServer(configuration As INetworkServerConfiguration) ``` -------------------------------- ### GET query/{someValue} Source: https://docs.remotingsdk.com/Servers/Technologies/HttpAPI/Details An example of exposing a service method via HTTP GET, binding a path parameter and a query parameter. ```APIDOC ## GET query/{someValue} ### Description Exposes a service method via HTTP GET, where 'someValue' is extracted from the URL path and 'someString' is provided as a query parameter. ### Method GET ### Endpoint query/{someValue} ### Parameters #### Path Parameters - **someValue** (Int32) - Required - The value extracted from the URL path. #### Query Parameters - **someString** (String) - Optional - The string parameter provided via query string. ``` -------------------------------- ### ActiveGuid Property Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROWinMessageChannel Gets or sets the active GUID for the channel. ```Delphi property ActiveGuid: TGUID read write ``` -------------------------------- ### SetupServer Source: https://docs.remotingsdk.com/API/NET/Classes/NetworkServer Initializes the server with the provided configuration. ```APIDOC ## SetupServer ### Description Configures the network server using the specified configuration object. ### Parameters - **configuration** (INetworkServerConfiguration) - Required - The server configuration. ``` -------------------------------- ### LoadedRodlLibraryGUID Property Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRODLUse Gets or sets the GUID of the loaded RODL library. ```Delphi property LoadedRodlLibraryGUID: TGUID read write ``` -------------------------------- ### GetStartupOptionsHelpText Method Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Returns the help text for startup options. Can be overridden to provide custom help messages. ```Oxygene method GetStartupOptionsHelpText: String ``` ```C# String GetStartupOptionsHelpText() ``` ```Swift func GetStartupOptionsHelpText() -> String ``` ```VB Function GetStartupOptionsHelpText() As String ``` -------------------------------- ### StartServer Method Source: https://docs.remotingsdk.com/API/NET/Classes/ServerBaseForm Override to provide server startup procedures. ```Oxygene method StartServer ``` ```C# void StartServer() ``` ```Swift func StartServer() ``` -------------------------------- ### ActiveClientID Property Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRODLLChannel Property to get or set the active client ID as a GUID. ```Delphi property ActiveClientID: TGUID read write ``` -------------------------------- ### StartServer Method Source: https://docs.remotingsdk.com/API/NET/Classes/ServerBaseForm Initializes the server process. ```Oxygene Sub StartServer() ``` -------------------------------- ### GetMessageQueue(Guid clientId) Source: https://docs.remotingsdk.com/API/NET/Classes/MemoryMessageQueueManager Gets the message queue associated with the specified client ID. ```APIDOC ## GetMessageQueue(Guid clientId) ### Description Gets the message queue associated with the provided client ID. ### Parameters - **clientId** (Guid) - Required - The unique identifier of the client. ### Returns - **IMessageQueue** - The message queue instance. ``` -------------------------------- ### Initialize ApplicationServer with full parameters Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Constructor accepting application name, namespace, service name, description, and service types. ```Oxygene constructor(applicationName: String; rodlNamespace: String; serviceName: String; serviceDescription: String; params serviceTypes: array of Type) ``` ```C# ApplicationServer(String applicationName, String rodlNamespace, String serviceName, String serviceDescription, params Type[] serviceTypes) ``` ```Swift init(_ applicationName: String, _ rodlNamespace: String, _ serviceName: String, _ serviceDescription: String, _ serviceTypes: Type...) ``` ```VB Sub New(applicationName As String, rodlNamespace As String, serviceName As String, serviceDescription As String, ParamArray serviceTypes As Type()) ``` -------------------------------- ### Access IsQuietModeEnabled Property Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Gets or sets the quiet mode flag. This suppresses output during service installation or deinstallation. ```Oxygene property IsQuietModeEnabled: Boolean read write; ``` ```C# Boolean IsQuietModeEnabled { get; set; } ``` ```Swift var IsQuietModeEnabled: Boolean { get{} set{} } ``` ```VB Property IsQuietModeEnabled() As Boolean ``` -------------------------------- ### Manage Windows Service via SC Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationHost Standard Windows Service control commands for installing, starting, stopping, and deleting the service. ```bash sc create [Service_Name] BinPath=[full_path_to_the_server_app_exe_file] ``` ```bash sc start [Service_Name] sc stop [Service_Name] sc delete [Service_Name] ``` -------------------------------- ### Open Method Source: https://docs.remotingsdk.com/API/NET/Classes/NamedPipeServerChannel Initializes the server channel. ```Oxygene void Open() ``` ```C# func Open() ``` ```Swift Sub Open() ``` -------------------------------- ### Start request Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROSuperHTTPAsyncRequest Starts the request. Callbacks occur on the thread that sent the start message. ```objective-c - (void) start ``` -------------------------------- ### Open Method Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncTcpServer Starts the server to listen for incoming connections. Use the Active property to verify the server state. ```Oxygene method Open ``` ```C# void Open() ``` ```Swift func Open() ``` ```VB Sub Open() ``` -------------------------------- ### start Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROAsyncRequest Starts the request. Callbacks to the delegate will occur on the thread that initiated the start message. ```APIDOC ### - (void)start Starts the request if it is not already running. The current thread is considered the request's context for delegate callbacks. Throws ROAsyncRequestActiveException if already running. ``` -------------------------------- ### Initialize and Run ApplicationServer Source: https://docs.remotingsdk.com/IDEs/Fire/NewServer The Main() entry point initializes the ApplicationServer, configures TLS settings, and starts the server process. ```Oxygene var server := new ApplicationServer('MyServerApp'); // TLS server.NetworkServer.UseTLS := true; server.NetworkServer.AutoCreateSelfSignedCertificate := true; //server.NetworkServer.CertificateFilename := ''; //server.NetworkServer.CertificateName := ''; //server.NetworkServer.channel := new IpSuperHttpServerChannel(); //server.NetworkServer.Port := 8099; server.Run(args) ``` ```C# ApplicationServer server = new ApplicationServer("MyServerApp"); // TLS server.NetworkServer.UseTLS = true; server.NetworkServer.AutoCreateSelfSignedCertificate = true; //server.NetworkServer.CertificateFilename = ""; //server.NetworkServer.CertificateName = ""; //server.NetworkServer.channel = new IpSuperHttpServerChannel(); //server.NetworkServer.Port = 8099; server.Run(args); return 0; ``` ```Swift let server = ApplicationServer("MyServerApp") // TLS server.NetworkServer.UseTLS = true server.NetworkServer.AutoCreateSelfSignedCertificate = true //server.NetworkServer.CertificateFilename = "" //server.NetworkServer.CertificateName = "" //server.NetworkServer.channel = new IpSuperHttpServerChannel() //server.NetworkServer.Port = 8099 server.Run(C_ARGV.nativeArray) ``` ```Java ApplicationServer server = new ApplicationServer("MyServerApp"); // TLS server.NetworkServer.UseTLS = true; server.NetworkServer.AutoCreateSelfSignedCertificate = true; //server.NetworkServer.CertificateFilename = ""; //server.NetworkServer.CertificateName = ""; //server.NetworkServer.channel = new IpSuperHttpServerChannel(); //server.NetworkServer.Port = 8099; server.Run(args); return 0; ``` -------------------------------- ### Open Method Source: https://docs.remotingsdk.com/API/NET/Classes/NamedPipeServerChannel Starts the server channel to accept incoming requests. ```Oxygene method Open ``` -------------------------------- ### Started Event Source: https://docs.remotingsdk.com/API/NET/Classes/NetworkServer Event triggered after the server has started. ```Oxygene event Started: EventHandler ``` ```C# delegate EventHandler Started() ``` ```Swift __event EventHandler: Started! ``` ```VB Event Started As EventHandler ``` -------------------------------- ### SetupClientConnection Method Source: https://docs.remotingsdk.com/API/NET/Classes/SuperTcpChannelWorker Protected method to initialize client connection. ```Oxygene method SetupClientConnection ``` ```C# void SetupClientConnection() ``` ```Swift func SetupClientConnection() ``` ```VB Sub SetupClientConnection() ``` -------------------------------- ### Starting Event Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Event triggered when the application is starting. ```Oxygene event Starting: EventHandler ``` ```C# delegate EventHandler Starting() ``` ```Swift __event EventHandler: Starting! ``` ```VB Event Starting As EventHandler ``` -------------------------------- ### Read GUID Source: https://docs.remotingsdk.com/API/Java/Interfaces/ISerialization Reads a GUID value as a UUID. ```Oxygene method readGuid(aName: String): UUID ``` ```Java UUID readGuid(String aName) ``` -------------------------------- ### Invoke Setup Method Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncHttpServerWorker Initializes the worker, sets default variables, and opens an asynchronous read connection to the client. ```Oxygene method Setup ``` ```C# void Setup() ``` ```Swift func Setup() ``` ```VB Sub Setup() ``` -------------------------------- ### Read GUID Source: https://docs.remotingsdk.com/API/Java/Classes/BinReaderWriter Reads a GUID value from the stream. ```Oxygene method readGuid: UUID ``` ```Java UUID readGuid() ``` -------------------------------- ### DoStartServer Method Source: https://docs.remotingsdk.com/API/NET/Classes/ServerBaseForm Performs server startup procedures including GUI manipulations and calls StartServer. ```Oxygene method DoStartServer ``` ```C# void DoStartServer() ``` ```Swift func DoStartServer() ``` ```VB Sub DoStartServer() ``` -------------------------------- ### Initialize with Connection and Headers Source: https://docs.remotingsdk.com/API/NET/Classes/HttpIncomingRequestResponse Constructors for creating an instance with specific connection and header information. ```Oxygene constructor(connection: Connection; headers: HttpHeaders) ``` ```C# HttpIncomingRequestResponse(Connection connection, HttpHeaders headers) ``` ```Swift init(_ connection: Connection, _ headers: HttpHeaders) ``` ```VB Sub New(connection As Connection, headers As HttpHeaders) ``` -------------------------------- ### Initialize ApplicationServer with minimal code Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationServer A single-line implementation to start the server application infrastructure. ```C# public static int Main(string[] args) { new ApplicationServer("Server App Name").Run(args); return 0; } ``` ```Oxygene begin new ApplicationServer('Server App Name').Run(args); result := 0; end. ``` ```Swift ApplicationServer("Server App Name").Run(C_ARGV.nativeArray); result := 0; ``` ```VB Public Shared Function Main(args As String()) As Int32 Dim server As New ApplicationServer("Server App Name") server.run(args) End Function ``` -------------------------------- ### Read Nullable GUID Source: https://docs.remotingsdk.com/API/Java/Classes/BinMessage Reads a nullable GUID value. ```Oxygene method readNullableGuid(aName: String): nullable UUID ``` ```Java UUID readNullableGuid(String aName) ``` -------------------------------- ### Write GUID Value Source: https://docs.remotingsdk.com/API/Java/Classes/BinReaderWriter Writes a GUID value to the stream. ```Oxygene method writeGuid(aValue: UUID) ``` ```Java void writeGuid(UUID aValue) ``` -------------------------------- ### Full Constructor Source: https://docs.remotingsdk.com/API/NET/Classes/ApiResult Creates a new instance with all parameters including filename and inline flag. ```oxygene constructor(statusCode: HttpStatusCode; contentType: String; filename: String; isInline: Boolean; contentBytes: array of Byte) ``` ```csharp ApiResult(HttpStatusCode statusCode, String contentType, String filename, Boolean isInline, Byte[] contentBytes) ``` ```swift init(_ statusCode: HttpStatusCode, _ contentType: String, _ filename: String, _ isInline: Boolean, _ contentBytes: Byte...) ``` ```vb Sub New(statusCode As HttpStatusCode, contentType As String, filename As String, isInline As Boolean, contentBytes As Byte()) ``` -------------------------------- ### Read Guid Source: https://docs.remotingsdk.com/API/Cocoa/Protocols/ROSerialization Reads a GUID value by name and class. ```Objective-C - (nullable ROGuid *) readGuidWithName:(nullable NSString *)aName asClass:(nonnull Class)aClass ``` -------------------------------- ### start Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROAsyncRequest Starts the request in the background, with callbacks occurring on the calling thread. ```APIDOC ### - (void) start Starts the request if it is not already running. Callbacks to the delegate will occur on the thread that sent the start message. ``` -------------------------------- ### Initialize ServerSetupException with Message Source: https://docs.remotingsdk.com/API/NET/Classes/ServerSetupException Constructs a new instance with a custom error message. ```Oxygene constructor(message: String) ``` ```C# ServerSetupException(String message) ``` ```Swift init(_ message: String) ``` ```VB Sub New(message As String) ``` -------------------------------- ### UnsubscribeClient (Guid) Method Source: https://docs.remotingsdk.com/API/NET/Classes/EventSinkManager Unsubscribes a client identified by the provided Guid. ```Oxygene class method UnsubscribeClient(clientId: Guid) ``` ```C# static void UnsubscribeClient(Guid clientId) ``` ```Swift static func UnsubscribeClient(_ clientId: Guid) ``` ```VB Shared Sub UnsubscribeClient(clientId As Guid) ``` -------------------------------- ### StartServer Method Implementation Source: https://docs.remotingsdk.com/API/NET/Classes/ServerBaseForm Override this method to define custom server startup procedures such as initializing network components. ```Oxygene method StartServer ``` ```C# void StartServer() ``` ```Swift func StartServer() ``` ```VB Sub StartServer() ``` -------------------------------- ### Write GUID and Date Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROBinReaderWriter Methods for writing GUID and DateTime objects. ```Objective-C - (void) writeDAGuid:(ROGuid *)value ``` ```Objective-C - (void) writeDateTime:(NSDate *)aDate ``` ```Objective-C - (void) writeGuid:(ROGuid *)value ``` -------------------------------- ### Load configuration method Source: https://docs.remotingsdk.com/API/NET/Classes/Configuration Initializes the configuration settings. ```Oxygene class method Load ``` ```C# static void Load() ``` ```Swift static func Load() ``` ```VB Shared Sub Load() ``` -------------------------------- ### Read Guid Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROBinReaderWriter Reads a GUID value into the provided ROGuid pointer. ```objective-c - (void) readGuid:(ROGuid * *)value ``` -------------------------------- ### XML-RPC Response Example Source: https://docs.remotingsdk.com/API/NET/Classes/XmlRpcMessage Example of a server response formatted in XML-RPC. ```xml 3 ``` -------------------------------- ### SetupMainLoop Method Source: https://docs.remotingsdk.com/API/NET/Classes/SuperTcpChannelWorker Protected method to initialize the main processing loop. ```Oxygene method SetupMainLoop ``` ```C# void SetupMainLoop() ``` ```Swift func SetupMainLoop() ``` ```VB Sub SetupMainLoop() ``` -------------------------------- ### Run(arguments: String[]) Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer The main application startup entry point. This method accepts command-line arguments, processes them, and starts the application in the appropriate mode. ```APIDOC ## Run(arguments: String[]) ### Description The main application startup entry point. This method accepts command-line arguments, processes them and starts the application in appropriate mode. ### Parameters - **arguments** (String[]) - Required - Startup parameters. ``` -------------------------------- ### XML-RPC Request Example Source: https://docs.remotingsdk.com/API/NET/Classes/XmlRpcMessage Example of a client request formatted in XML-RPC. ```xml MegaDemoService.Sum 1 2 ``` -------------------------------- ### Start Request on Current Thread Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROAsyncRequest Starts the request in the background while keeping delegate callbacks on the thread that initiated the start message. Throws ROAsyncRequestActiveException if called on an already running request. ```objective-c - (void) startWithBlock:(void(^)(ROAsyncRequest *))block ``` -------------------------------- ### Implement Remoting SDK Client in HTML Source: https://docs.remotingsdk.com/Tutorials/GettingStarted/JavaScript/CallingRemotingSDKServers This example shows the structure of an index.html file that initializes a service and calls remote methods with success and error callbacks. ```html Sum:
A
B

GetServerTime:

``` -------------------------------- ### Initialize Topshelf Server Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationHost Minimal startup code for a server using the Topshelf framework. ```csharp static void Main(string[] args) { HostFactory.Run(host => { host.ConfigureServices(services => { }); host.UseApplicationServer(configuration => { }); host.UseNetworkServer(server => { }); host.UseHostedService(); }); } ``` -------------------------------- ### Start Source: https://docs.remotingsdk.com/API/Delphi/Interfaces/IZeroConfBrowseStrategy Starts browsing for a specified service type within a given domain. ```APIDOC ## Start ### Description Starts the specified service of the type aType in the domain aDomain. ### Signature `procedure Start(const aDomain: UnicodeString; const aServiceType: UnicodeString)` ### Parameters - **aDomain** (UnicodeString) - Service domain name - **aServiceType** (UnicodeString) - Service type this instance should browse for ``` -------------------------------- ### Initialize ApplicationServer with namespace and types Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Constructor accepting application name, namespace, and service types. ```Oxygene constructor(applicationName: String; rodlNamespace: String; params serviceTypes: array of Type) ``` ```C# ApplicationServer(String applicationName, String rodlNamespace, params Type[] serviceTypes) ``` ```Swift init(_ applicationName: String, _ rodlNamespace: String, _ serviceTypes: Type...) ``` ```VB Sub New(applicationName As String, rodlNamespace As String, ParamArray serviceTypes As Type()) ``` -------------------------------- ### QueueMessage(Stream, Guid) Source: https://docs.remotingsdk.com/API/NET/Classes/OlympiaMessageQueueManager Queues a message for a specific client identified by a Guid. ```APIDOC ## QueueMessage(Stream, Guid) ### Description Queues a message for a specific client identified by a Guid. ### Parameters - **message** (Stream) - Required - Message containing server-sent data - **clientId** (Guid) - Required - Client Id ``` -------------------------------- ### Initialize ApplicationServer with name and types Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer Constructor accepting application name and service types. ```Oxygene constructor(applicationName: String; params serviceTypes: array of Type) ``` ```C# ApplicationServer(String applicationName, params Type[] serviceTypes) ``` ```Swift init(_ applicationName: String, _ serviceTypes: Type...) ``` ```VB Sub New(applicationName As String, ParamArray serviceTypes As Type()) ``` -------------------------------- ### WriteGuid(String name, Guid value) Source: https://docs.remotingsdk.com/API/NET/Classes/BinMessage Writes a GUID value to the message. ```APIDOC ## WriteGuid(String name, Guid value) ### Description Writes a GUID value to the message. ### Parameters - **name** (String) - The name of the field. - **value** (Guid) - The GUID value to write. ``` -------------------------------- ### Retrieve GUID data Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROGuid Instance method to retrieve the raw data of the GUID. ```objective-c - (nonnull NSData *) data ``` -------------------------------- ### Run(String[] arguments) Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer The main application startup entry point. This method accepts command-line arguments, processes them, and starts the application in the appropriate mode. ```APIDOC ## Run(String[] arguments) ### Description The main application startup entry point. This method accepts command-line arguments, processes them, and starts the application in the appropriate mode. ### Parameters - **arguments** (String[]) - Required - Startup parameters. ``` -------------------------------- ### RequestType Property Source: https://docs.remotingsdk.com/API/NET/Classes/HttpHeaders Gets or sets the HTTP request method, such as GET or POST. ```Oxygene property RequestType: String read write; ``` ```C# String RequestType { get; set; } ``` ```Swift var RequestType: String { get{} set{} } ``` ```VB Property RequestType() As String ``` -------------------------------- ### Initialize and Run the ApplicationServer Source: https://docs.remotingsdk.com/Servers/Technologies/AddingToExistingApplication_NET Start the server using the ApplicationServer class, which automatically discovers services marked with the [Service] attribute. ```csharp using RemObjects.SDK.Server; var server = new ApplicationServer("MyServer"); server.Run(args); ``` -------------------------------- ### Get(aUrl: string) Source: https://docs.remotingsdk.com/API/Delphi/Interfaces/IROSimpleHttpClient Performs an HTTP GET request to the specified URL. ```APIDOC ## procedure Get(aUrl: string) ### Description Performs an HTTP GET request to the specified URL. ### Parameters - **aUrl** (string) - The target URL for the GET request. ``` -------------------------------- ### Implement OnStart Lifecycle Method Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationService Protected method triggered when the service starts, accepting an array of string arguments. ```Oxygene method OnStart(args: array of String) ``` ```C# void OnStart(String[] args) ``` ```Swift func OnStart(_ args: String...) ``` ```VB Sub OnStart(args As String()) ``` -------------------------------- ### Install PHP Dependencies Source: https://docs.remotingsdk.com/Servers/Technologies/HttpAPI/ConsumingROEvents Commands to install required dependencies using Composer. ```bash php composer.phar install ``` ```bash composer install ``` -------------------------------- ### Initialize AsyncProxy from URL String Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncProxy Creates a new instance using a server URL string. ```Oxygene constructor(url: String) ``` ```C# AsyncProxy(String url) ``` ```Swift init(_ url: String) ``` ```VB Sub New(url As String) ``` -------------------------------- ### JSON-RPC Parameter Examples Source: https://docs.remotingsdk.com/API/NET/Classes/JsonMessage Examples of JSON-RPC parameter formats for indexed and named parameters. ```JSON {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1} ``` ```JSON {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} ``` -------------------------------- ### Install Topshelf Service Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationHost Command line argument to register the application as a Windows Service using Topshelf. ```bash NetServer.exe install -servicename:"NetService" ``` -------------------------------- ### Get or Set Position Property Source: https://docs.remotingsdk.com/API/NET/Classes/BoundIncomingStream Gets or sets the current position within the stream. ```Oxygene property Position: Int64 read write; ``` ```C# Int64 Position { get; set; } ``` ```Swift var Position: Int64 { get{} set{} } ``` ```VB Property Position() As Int64 ``` -------------------------------- ### - (void)start Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROTCPAsyncRequest Starts the request in the background while maintaining the current thread as the context for delegate callbacks. ```APIDOC ## - (void)start ### Description Starts the request if it is not already running. The request executes in the background, but delegate callbacks occur on the thread that invoked this method. ### Exceptions - **ROAsyncRequestActiveException**: Thrown if the request is already running. ``` -------------------------------- ### Start Request in Background Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROHTTPAsyncRequest Starts the request in the background. Callbacks to the delegate occur on a background thread. ```objective-c - (void) startInBackground ``` -------------------------------- ### JSON-RPC Call and Response Examples Source: https://docs.remotingsdk.com/Servers/Concepts/JSONMessage Example of a JSON-RPC request body and the corresponding response body. ```json {"id":"{005c29ce-2289-4e04-955e-72349dac8166}", "method":"MegaDemoService.Sum", "params":{"A":"3","B":"5"}} ``` ```json {"version":"1.1","result":{"Result":"8"}} ``` -------------------------------- ### Registering a Singleton Dependency Source: https://docs.remotingsdk.com/Servers/Technologies/DependencyInjection Demonstrates the basic setup of a service with an injected logger and the registration of a singleton dependency. ```csharp using RemObjects.SDK.Server; namespace SampleServer { static class Program { public static int Main(string[] args) { ApplicationServer server = new ApplicationServer("SampleServer"); server.DependencyResolver.RegisterSingleton(typeof(ILogger), new DebugLogger()); server.Run(args); return 0; } } // Sample Service [Service] public class FooService : Service { private readonly ILogger _logger; public FooService(ILogger logger) { this._logger = logger; } [ServiceMethod] public string Foo(string value) { this._logger.Log("Foo: " + value); return value.ToUpper(); } } public interface ILogger { void Log(string message); } class ConsoleLogger : ILogger { public void Log(string message) { System.Console.WriteLine(message); } } class DebugLogger : ILogger { public void Log(string message) { System.Diagnostics.Debug.WriteLine(message); } } } ``` -------------------------------- ### Initialize ServerSetupException with Serialization Info Source: https://docs.remotingsdk.com/API/NET/Classes/ServerSetupException Constructs a new instance using serialization information for .NET Framework compatibility. ```Oxygene constructor(info: SerializationInfo; context: StreamingContext) ``` ```C# ServerSetupException(SerializationInfo info, StreamingContext context) ``` ```Swift init(_ info: SerializationInfo, _ context: StreamingContext) ``` ```VB Sub New(info As SerializationInfo, context As StreamingContext) ``` -------------------------------- ### Retrieve GUID string representations Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROGuid Instance methods to obtain the GUID as a string, with various formatting options. ```objective-c - (nonnull NSString *) stringValue ``` ```objective-c - (nonnull NSString *) stringValueWithCurlies ``` ```objective-c - (nonnull NSString *) stringValueWithFormat:(nonnull NSString *)format ``` ```objective-c - (nonnull NSString *) stringValueWithoutCurlies ``` -------------------------------- ### Initialize ServerMainForm with Server Details Source: https://docs.remotingsdk.com/API/NET/Classes/ServerMainForm Constructors for creating a new instance with a specific server name and network server implementation. ```Oxygene constructor(serverName: String; server: INetworkServer) ``` ```C# ServerMainForm(String serverName, INetworkServer server) ``` ```Swift init(_ serverName: String, _ server: INetworkServer) ``` ```VB Sub New(serverName As String, server As INetworkServer) ``` -------------------------------- ### Get(String) Source: https://docs.remotingsdk.com/API/NET/Classes/HttpClient Retrieves an HTTP document as a string from the provided URL using the GET HTTP command. ```APIDOC ## Get(String) ### Description Retrieves an HTTP document (as a string) from the provided URL using the GET HTTP command. ### Parameters - **url** (String) - Required - The URL to retrieve the document from. ``` -------------------------------- ### Open() Source: https://docs.remotingsdk.com/API/NET/Classes/LdapClient Connects and initializes TLS if necessary. ```APIDOC ## Open() ### Description Connects and initializes TLS if necessary. ``` -------------------------------- ### startWithBlock: Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROAsyncRequest Starts the request with a completion block. The request executes in the background, and callbacks occur on the thread that initiated the start message. ```APIDOC ## - (void) startWithBlock:(void(^)(ROAsyncRequest *))block ### Description Starts the request with given completion block. While the request itself will be executed in the background, the current thread will be considered the request's context and any callbacks to the delegate will happen on the thread that sent the start message. If applied to an already running request, ROAsyncRequestActiveException will be thrown. ### Parameters - **block** (void(^)(ROAsyncRequest *)) - Required - Completion block. Will be called after async request ends. ``` -------------------------------- ### Initialize Microsoft.Extensions.Hosting Server Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationHost Minimal startup code for a server using the Microsoft.Extensions.Hosting package. ```csharp static class Program { public static void Main(string[] args) { var host = CreateHostBuilder(args) .Build(); host.Run(); } public static IHostBuilder CreateHostBuilder(string[] args) { return Host.CreateDefaultBuilder(args) .ConfigureServices((hostContext, services) => { }) .UseApplicationServer(configuration => { }) .UseNetworkServer(server => { }) .UseConsoleLifetime(); } } ``` -------------------------------- ### SetUpForTargetUrl Method Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRORemoteService Configures the service using a target URL string. ```Delphi procedure SetUpForTargetUrl(const aUrl: string) ``` -------------------------------- ### Start Request on Main Thread Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROAsyncRequest Starts the request and ensures the completion block and delegate callbacks execute on the main UI thread. ```objective-c - (void) startOnMainThreadWithBlock:(void(^)(ROAsyncRequest *))block ``` -------------------------------- ### Get(String, Encoding) Source: https://docs.remotingsdk.com/API/NET/Classes/HttpClient Retrieves an HTTP document as a string in the specified encoding from the provided URL using the GET HTTP command. ```APIDOC ## Get(String, Encoding) ### Description Retrieves an HTTP document (as a string) in the specified encoding from the provided URL using the GET HTTP command. ### Parameters - **url** (String) - Required - The URL to retrieve the document from. - **encoding** (Encoding) - Required - The character encoding to use. ``` -------------------------------- ### Initialize with Headers Source: https://docs.remotingsdk.com/API/NET/Classes/HttpIncomingRequestResponse Constructors for creating an instance with specific header information. ```Oxygene constructor(header: HttpHeaders) ``` ```C# HttpIncomingRequestResponse(HttpHeaders header) ``` ```Swift init(_ header: HttpHeaders) ``` ```VB Sub New(header As HttpHeaders) ``` -------------------------------- ### Create Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROBaseSuperTCPServer Initializes a new instance of the TROBaseSuperTCPServer component. ```APIDOC ## constructor Create ### Description Standard component constructor for initializing the server instance. ### Parameters - **aOwner** (TComponent) - Required - The owner of the component. ``` -------------------------------- ### Start Request in Background with Completion Block Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROHTTPAsyncRequest Starts the request in the background with a completion block. Both delegate callbacks and the completion block execute on a background thread. ```objective-c - (void) startInBackgroundWithBlock:(void(^)(ROAsyncRequest *))block ``` -------------------------------- ### RequestType Source: https://docs.remotingsdk.com/API/NET/Classes/HttpClientRequest Gets or sets the type of the HTTP request. Supported values include Get, Post, Put, Delete, and Head. The default value is RequestType.Get. ```APIDOC ## Property RequestType ### Description Gets or sets the type of the HTTP request. ### Type RequestType ### Supported Values - RequestType.Get - RequestType.Post - RequestType.Put - RequestType.Delete - RequestType.Head ``` -------------------------------- ### Initialize ServerSetupException Source: https://docs.remotingsdk.com/API/NET/Classes/ServerSetupException Constructs a new instance of the exception. ```Oxygene constructor ``` ```C# ServerSetupException() ``` ```Swift init() ``` ```VB Sub New() ``` -------------------------------- ### SetUpForTargetUri Method Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRORemoteService Configures the service using a target URI. ```Delphi procedure SetUpForTargetUri(const aUri: TROUri = True) ``` -------------------------------- ### Instantiating and calling a service Source: https://docs.remotingsdk.com/Tutorials/GettingStarted/Cocoa/How_to_create_simple_RO_SDK_client_for_OSX Demonstrates how to initialize the message, channel, and proxy objects to execute a remote service method. ```objective-c // create message and channel NSURL *targetURL = [NSURL URLWithString:@"http://myServer:8099/bin"]; ROBinMessage *message = [[[ROBinMessage alloc] init] autorelease]; ROHTTPClientChannel *channel = [[[ROHTTPClientChannel alloc] initWithTargetURL:targetURL] autorelease]; // create your proxy (here from the ROiPhonePhoto sample) MegaDemoService_Proxy *p = [[[MegaDemoService_Proxy alloc] initWithMessage:message channel:channel] autorelease]; // and make your call int result = [p Sum:3:5]; // returns 8 ``` -------------------------------- ### OnTransferStart Source: https://docs.remotingsdk.com/API/NET/Classes/IpClientChannel Triggered when a transfer is about to be started. ```APIDOC ## Event OnTransferStart ### Description Triggered at the beginning of a data transfer. ### Signature `event OnTransferStart: EventHandler` ``` -------------------------------- ### Initialize Client Instance Source: https://docs.remotingsdk.com/API/NET/Classes/Client Creates a new instance of the Client class. ```Oxygene constructor ``` ```C# Client() ``` ```Swift init() ``` ```VB Sub New() ``` -------------------------------- ### OnStartTransaction Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRODBSessionManager Fires when a transaction should be started. ```APIDOC ## OnStartTransaction ### Description Fires when a transaction should be started. You can handle this event to determine if the transaction should be started (default) or not. ### Signature `property OnStartTransaction: TRODBSessionManagerTransactionEvent read write` ### Delegate `procedure OnStartTransaction(Sender: TROCustomSessionManager)` ``` -------------------------------- ### Initialize HttpServer Instance Source: https://docs.remotingsdk.com/API/NET/Classes/HttpServer Constructors for creating a new HttpServer instance. ```Oxygene constructor ``` ```C# HttpServer() ``` ```Swift init() ``` ```VB Sub New() ``` -------------------------------- ### ReadGuid Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROBSONSerializer Reads a GUID value. ```APIDOC ## procedure ReadGuid(const aName: string; var Ref: ; ArrayElementId: Integer = -1) ### Description Reads a GUID value. ### Parameters - **aName** (string) - Name of the object to read. - **Ref** (var) - Output parameter, should point to the deserialized instance. - **ArrayElementId** (Integer) - Optional, default -1. If the object about to be read is an array element, its index is contained in this parameter. ``` -------------------------------- ### Initialize AsyncProxy from Uri Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncProxy Creates a new instance using a server Uri. ```Oxygene constructor(uri: Uri) ``` ```C# AsyncProxy(Uri uri) ``` ```Swift init(_ uri: Uri) ``` ```VB Sub New(uri As Uri) ``` -------------------------------- ### WriteGuid Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROBSONSerializer Writes a GUID value. ```APIDOC ## procedure WriteGuid(const aName: string; const Ref: ; ArrayElementId: Integer = -1) ### Description Writes a GUID value to the serializer. ### Parameters - **aName** (string) - Name of the object to write. - **Ref** (any) - Points to the instance to serialize. - **ArrayElementId** (Integer) - Optional. If the object to write is an array element, its index is contained in this parameter, otherwise it is -1. ``` -------------------------------- ### SerializerInstance Source: https://docs.remotingsdk.com/API/NET/Interfaces/IMessage Gets the serializer instance. ```APIDOC ## SerializerInstance ### Description Returns the current Serializer instance. ``` -------------------------------- ### Initialize Binary Instance Source: https://docs.remotingsdk.com/API/NET/Classes/Binary Constructors for creating a new Binary instance. ```Oxygene constructor ``` ```C# Binary() ``` ```Swift init() ``` ```VB Sub New() ``` -------------------------------- ### ServerMessage Source: https://docs.remotingsdk.com/API/NET/Interfaces/INetworkServer Gets the server message. ```APIDOC ## ServerMessage ### Description Gets the IMessage instance associated with the server. ``` -------------------------------- ### SetUpForTargetUrl Source: https://docs.remotingsdk.com/API/Delphi/Classes/TRORemoteService Configures the service connection using a target URL string. ```APIDOC ### procedure SetUpForTargetUrl #### Description Configures the component to communicate with the specified target URL. #### Parameters - **aUrl** (string) - Required - The target server URL. #### Signature procedure SetUpForTargetUrl(const aUrl: string) ``` -------------------------------- ### Initialize ServerSetupException with Message and Inner Exception Source: https://docs.remotingsdk.com/API/NET/Classes/ServerSetupException Constructs a new instance wrapping an existing exception. ```Oxygene constructor(message: String; innerException: Exception) ``` ```C# ServerSetupException(String message, Exception innerException) ``` ```Swift init(_ message: String, _ innerException: Exception) ``` ```VB Sub New(message As String, innerException As Exception) ``` -------------------------------- ### Domain Source: https://docs.remotingsdk.com/API/NET/Classes/ZeroConfService Gets the service domain. ```APIDOC ## Property: Domain ### Description Gets the service domain. ### Type String ``` -------------------------------- ### Initialize RodlMethodInfo Source: https://docs.remotingsdk.com/API/NET/Classes/RodlMethodInfo Constructs a new instance of the RodlMethodInfo class. ```Oxygene constructor(method: MethodInfo; name: String; isAsynchronous: Boolean; result: RodlParameterInfo; parameters: array of RodlParameterInfo; roles: array of String) ``` ```C# RodlMethodInfo(MethodInfo method, String name, Boolean isAsynchronous, RodlParameterInfo result, RodlParameterInfo[] parameters, String[] roles) ``` ```Swift init(_ method: MethodInfo, _ name: String, _ isAsynchronous: Boolean, _ result: RodlParameterInfo, _ parameters: RodlParameterInfo..., _ roles: String...) ``` ```VB Sub New(method As MethodInfo, name As String, isAsynchronous As Boolean, result As RodlParameterInfo, parameters As RodlParameterInfo(), roles As String()) ``` -------------------------------- ### Create Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROIndyTCPServer Standard component constructor for initializing the TROIndyTCPServer instance. ```APIDOC ## constructor Create ### Description Initializes a new instance of the TROIndyTCPServer component. ### Signature `constructor Create(aOwner: TComponent)` ### Parameters - **aOwner** (TComponent) - The owner component. ``` -------------------------------- ### BeginListItem Source: https://docs.remotingsdk.com/API/NET/Classes/OpenApiJsonSerializer Starts an item within a list. ```Oxygene method BeginListItem ``` ```C# void BeginListItem() ``` ```Swift func BeginListItem() ``` ```VB Sub BeginListItem() ``` -------------------------------- ### run Source: https://docs.remotingsdk.com/API/Java/Classes/AsyncRequest Starts the execution of the asynchronous request. ```APIDOC ## void run() ### Description Starts the request process. ``` -------------------------------- ### Run Method Source: https://docs.remotingsdk.com/API/NET/Classes/ApplicationServer The main application entry point that processes arguments and starts the application. ```Oxygene method Run(arguments: array of String) ``` ```C# void Run(String[] arguments) ``` ```Swift func Run(_ arguments: String...) ``` ```VB Sub Run(arguments As String()) ``` -------------------------------- ### OnBeforeEncryption event Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROCustomEncryption Triggered before encryption starts. ```Delphi property OnBeforeEncryption: TROEncryptionEvent read writedelegate: procedure OnBeforeEncryption(Sender: TObject; OriginalStream: TStream; var ProcessedStream: TStream) ``` -------------------------------- ### EndAccept Source: https://docs.remotingsdk.com/API/Delphi/Classes/TIPAsyncSocket Completes the operation started by BeginAccept. ```APIDOC ## function EndAccept: TIPBaseAsyncSocket ### Description Completes the asynchronous accept operation started by BeginAccept and returns the resulting TIPBaseAsyncSocket instance. ``` -------------------------------- ### Init Method Source: https://docs.remotingsdk.com/API/NET/Classes/Connection Initializes the connection with a specific socket. ```Oxygene method Init(socket: Socket) ``` ```C# void Init(Socket socket) ``` ```Swift func Init(_ socket: Socket) ``` ```VB Sub Init(socket As Socket) ``` -------------------------------- ### Initialize Service Instance Source: https://docs.remotingsdk.com/API/NET/Classes/Service Constructors for creating a new Service instance. ```Oxygene constructor ``` ```C# Service() ``` ```Swift init() ``` ```VB Sub New() ``` -------------------------------- ### EndAccept Source: https://docs.remotingsdk.com/API/Delphi/Classes/TIPBaseAsyncSocket Completes the operation started by BeginAccept. ```Delphi function EndAccept: TIPBaseAsyncSocket ``` -------------------------------- ### Start Request Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROAsyncRequest Initiates the asynchronous request. ```Delphi procedure Start ``` -------------------------------- ### Create Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROBaseSuperTCPServer Standard component constructor for initializing a new instance of TROBaseSuperTCPServer. ```APIDOC ## constructor Create ### Description Initializes a new instance of the TROBaseSuperTCPServer component. ### Signature `constructor Create(aOwner: TComponent)` ### Parameters - **aOwner** (TComponent) - Required - The owner component. ``` -------------------------------- ### Start Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROAsyncRequest Initiates the execution of the asynchronous request. ```APIDOC ## procedure Start ### Description Starts the asynchronous request. ``` -------------------------------- ### Initialize Proxy and Configure Message Settings Source: https://docs.remotingsdk.com/Samples/Cocoa/MegaDemo Demonstrates creating a service proxy using a target URL and configuring message-specific settings like compression or SOAP mode. ```objective-c - (IBAction)runTestOnce:(id)sender { NSDate *startTime; NSDate *endTime; NSTimeInterval timeDiff; megaDemoLibrary = [[MegaDemoService_Proxy alloc] initWithURL:[self currentTragetURL]]; if ([[megaDemoLibrary __message] isKindOfClass:[ROBinMessage class]]) [(ROBinMessage *)[megaDemoLibrary __message] setUseCompression:[chkCompression state] == NSOnState]; if ([[megaDemoLibrary __message] isKindOfClass:[ROSoapMessage class]]) [(ROSoapMessage *)[megaDemoLibrary __message] setSoapMode:ROSoapModeRPCEncoding]; ... ``` -------------------------------- ### ReadGuid Source: https://docs.remotingsdk.com/API/NET/Classes/BsonSerializer Reads a GUID value from the serializer. ```APIDOC ## ReadGuid(name: String) ### Description Reads a GUID value from the BSON stream. ### Parameters - **name** (String) - The name of the field to read. ``` -------------------------------- ### Initialize AsyncHttpServer with Container Source: https://docs.remotingsdk.com/API/NET/Classes/AsyncHttpServer Constructs a new instance and adds it to the provided components collection for .NET Framework. ```Oxygene constructor(container: IContainer) ``` ```C# AsyncHttpServer(IContainer container) ``` ```Swift init(_ container: IContainer) ``` ```VB Sub New(container As IContainer) ``` -------------------------------- ### Initialize ServerSetupException with Message and Server Flag Source: https://docs.remotingsdk.com/API/NET/Classes/ServerSetupException Constructs a new instance indicating whether the exception originated from the server. ```Oxygene constructor(message: String; fromServer: Boolean) ``` ```C# ServerSetupException(String message, Boolean fromServer) ``` ```Swift init(_ message: String, _ fromServer: Boolean) ``` ```VB Sub New(message As String, fromServer As Boolean) ``` -------------------------------- ### ActiveGuid Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROWinMessageChannel Property to manage the active GUID. ```APIDOC ## ActiveGuid ### Property `property ActiveGuid: TGUID read write` ``` -------------------------------- ### WriteGuid Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROStreamSerializer Writes a GUID value to the stream. ```APIDOC ## procedure WriteGuid(const aName: string; const Ref: ; ArrayElementId: Integer = -1) ### Description Writes a GUID value to the serializer. ### Parameters - **aName** (string) - Name of the object to write. - **Ref** (unspecified) - Points to the instance to serialize. - **ArrayElementId** (Integer) - Optional - If the object to write is an array element, its index is contained in this parameter, otherwise it is -1. ``` -------------------------------- ### Create Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROHTTPServer Initializes a new instance of the TROHTTPServer component. ```APIDOC ## constructor Create ### Description Standard component constructor to initialize the TROHTTPServer instance. ### Signature `constructor Create(aOwner: TComponent)` ### Parameters - **aOwner** (TComponent) - The owner component. ``` -------------------------------- ### FindSession Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROCustomSessionManager Finds a session with the specified GUID. ```APIDOC ## function FindSession ### Description Finds session with the specified GUID. ### Parameters - **aSessionID** (TGUID) - Required - Session ID - **aUpdateTime** (Boolean) - Optional - Update LastAccess of found session or not (default: True) ### Response - **Result** (TROSession) - The found session object. ``` -------------------------------- ### Initialize RodlMethodInfo Source: https://docs.remotingsdk.com/API/NET/Classes/RodlMethodInfo Constructor signatures for creating a new instance of RodlMethodInfo. ```Swift init(_ method: MethodInfo, _ name: String, _ isAsynchronous: Boolean, _ result: RodlParameterInfo, _ parameters: RodlParameterInfo..., _ roles: String...) ``` ```VB.NET Sub New(method As MethodInfo, name As String, isAsynchronous As Boolean, result As RodlParameterInfo, parameters As RodlParameterInfo(), roles As String()) ``` -------------------------------- ### AddGuid Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROBSONDocument Adds a GUID value to the document. ```APIDOC ### procedure AddGuid(aName: UnicodeString; aValue: TGUID) Adds a TGUID value associated with the specified name. ``` -------------------------------- ### Create Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROCustomIndyTCPServer Initializes a new instance of the TROCustomIndyTCPServer class. ```APIDOC ## constructor Create(aOwner: TComponent) ### Description Standard component constructor to initialize the server instance. ### Parameters - **aOwner** (TComponent) - Required - The owner component. ``` -------------------------------- ### Initialize ApplicationServer in .NET Source: https://docs.remotingsdk.com/Servers/Technologies/ApplicationHost Use this boilerplate to launch a Remoting SDK server application with minimal configuration. ```csharp public static void Main(string[] args) { new ApplicationServer("Server App Name").Run(args); } ``` -------------------------------- ### writeGuid: Source: https://docs.remotingsdk.com/API/Cocoa/Classes/ROBinReaderWriter Writes a GUID value into the stream. ```APIDOC ## - (void) writeGuid:(ROGuid *)value ### Description Writes a GUID value. ### Parameters - **value** (ROGuid *) - Required - GUID value to be written into the stream ``` -------------------------------- ### Initialize Login and Event Handling Source: https://docs.remotingsdk.com/Samples/JavaScript/HTTPChat Sets up the HTTP channel, JSON message, and event handlers for login, logout, and chat messages. ```javascript function login() { var channel = new RemObjects.SDK.HTTPClientChannel(document.getElementById("server-name").value + "json"); var message = new RemObjects.SDK.JSONMessage(); loginsvc = new HTTPChatLibrary.LoginService(channel, message); svc = new HTTPChatLibrary.HTTPChatService(channel, message); er = new RemObjects.SDK.EventReceiver(channel, message, "", 1000); er.addHandler("OnLogin", function (event) { log(event.aUserInfo.UserID + " just logged in."); }); er.addHandler("OnLogout", function (event) { log(event.aUserID + " just logged out."); }); er.addHandler("OnSendMessage", function (event) { log(event.aSenderUserID + " : " + event.aMessage); }); loginsvc.Login(document.getElementById("user-name").value, function (msg) { er.setActive(true); }, RemObjects.UTIL.showError); } ``` -------------------------------- ### ServerMessages Source: https://docs.remotingsdk.com/API/NET/Interfaces/INetworkServer Gets the list of server messages. ```APIDOC ## ServerMessages ### Description Gets the list of Message instances being used by the Network Server. ``` -------------------------------- ### Initialize Source: https://docs.remotingsdk.com/API/NET/Classes/DynamoDBSessionManager Prepares components for DynamoDB communication. May trigger table creation if configured. ```Oxygene method Initialize ``` ```C# void Initialize() ``` ```Swift func Initialize() ``` ```VB Sub Initialize() ``` -------------------------------- ### Timeout Source: https://docs.remotingsdk.com/API/NET/Classes/HttpSslConnection Gets or sets the timeout duration. ```APIDOC ## Int32 Timeout ### Description The Timeout property specifies the maximum amount of time (in seconds) that a Connection will wait for incoming data within a single Receive operation. The default value is 5 minutes. ``` -------------------------------- ### Configuration.Load() Source: https://docs.remotingsdk.com/API/NET/Classes/Configuration Initializes the configuration. ```APIDOC ## Method: Load() ### Description Loads the server configuration. ``` -------------------------------- ### Get ChannelType Source: https://docs.remotingsdk.com/API/NET/Classes/HttpSysServerChannel Retrieves the type of the channel. ```Swift var ChannelType: String { get{} } ``` ```VB ReadOnly Property ChannelType() As String ``` -------------------------------- ### Get owner Source: https://docs.remotingsdk.com/API/Delphi/Classes/TROServerLocatorCollection Returns the owner of the collection. ```Delphi function GetOwner: TPersistent ```