Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

TurtleServer

 

class TurtleServer : public VirtualGui

This class implements a remote gui virtualization server for U++ applications. By utilizing the modern web technologies such as HTML-5 canvas and websockets, TurtleServer allows U++ gui applications to be accessed remotely via modern web browsers, or, possibly, via specialized client software that understands the Turtle wire protocol.

 

Public Method List

 

TurtleServer& Bind(const String& addr)

Sets the server bind address to addr. Default is "0.0.0.0". Returns *this for method chaining.

 


 

TurtleServer& Host(const String& host)

Sets the host URL to host. Default URL is "localhost". Returns *this for method chaining.

 


 

TurtleServer& Port(int port)

Sets the connection port number. Default port number is 8888. Returns *this for method chaining.

 


 

TurtleServer& MaxConnections(int limit)

Sets a limit to the maximum number of concurrent client conntections. Default max. connection limit is 100. Returns *this for method chaining.

 


 

static void DebugMode(bool b = true)

POSIX only

If true, the server will not spawn child processes (no forking). Useful for debugging purposes.

 

Constructor detail

 

TurtleServer()

Default constructor. Initializes the server bind address to "0.0.0.0", the host URL to "localhost", and the connection port number to 8888.

 


 

TurtleServer(const String& host, int port)

Constructor overload. Initializes the host URL and the connection port number to provided values.

 


 

TurtleServer(const String& ip, String& host, int port)

Constructor overload. Initializes the server bind adrress, the host URL and the connection port number to provided values.

 

Function List

 

void RunTurtleGui(TurtleServer& gui, Event<> app_main)

Starts the Turtle GUI virtualization server and runs a U++ GUI application over it.

 

 

Last edit by oblivion on 09/02/2020. Do you want to contribute?. T++