C# Class AK.F1.Timing.Utility.Server.Program

F1 Live-Timing Server for .NET 4.
Show file Open project: simoneb/ak-f1-timing

Public Methods

Method Description
Live ( string username, string password, IPEndPoint endpoint = null, int connectionBacklog = 50 ) : void

Proxies the live-timing message stream to connected clients.

Playback ( string path, double speed = 1d, IPEndPoint endpoint = null, int connectionBacklog = 50 ) : void

Proxies a recorded live-timing message stream to connected clients.

Private Methods

Method Description
Main ( string args ) : void
Program ( ) : System
RegisterValueConverters ( ) : void
RunCore ( IMessageReader reader, IPEndPoint endpoint, int connectionBacklog ) : void

Method Details

Live() public method

Proxies the live-timing message stream to connected clients.
/// Thrown when or is /// . /// /// Thrown when or is empty. /// /// Thrown when is not positive. ///
public Live ( string username, string password, IPEndPoint endpoint = null, int connectionBacklog = 50 ) : void
username string A valid www.formula1.com username.
password string The corresponding password.
endpoint System.Net.IPEndPoint The endpoint to bind to. The default is any on 4532.
connectionBacklog int The accept connection backlog.
return void

Playback() public method

Proxies a recorded live-timing message stream to connected clients.
/// Thrown when is . /// /// Thrown when is empty. /// /// Thrown when or is not positive. ///
public Playback ( string path, double speed = 1d, IPEndPoint endpoint = null, int connectionBacklog = 50 ) : void
path string The path of the recorded live-timing message stream.
speed double The playback speed.
endpoint System.Net.IPEndPoint The endpoint to bind to. The default is any on 4532.
connectionBacklog int The accept connection backlog.
return void