Unit MP.Red
Description
This item has no description.
Uses
- Classes
- Dialogs
- fileutil
- Forms
- fphttpclient
- Graphics
- IdComponent
- IdContext
- IdGlobal
- IdHTTP
- IdSSLOpenSSL
- IdTCPClient
- MP.Block
- MP.Coin
- MP.Disk
- MP.Gui
- MPForm
- Noso.Block
- Noso.Config
- Noso.Consensus
- Noso.Crypto
- Noso.Debug
- Noso.General
- Noso.Gvt
- Noso.Headers
- Noso.Masternodes
- Noso.Network
- Noso.Pso
- Noso.Summary
- Noso.Time
- Noso.WallCon
- opensslsockets
- strutils
- SysUtils
- translation
Overview
Functions and Procedures
function CerrarClientes(ServerToo: Boolean = True): String; |
procedure ClearReceivedOrdersIDs(); |
function ConnectClient(Address, Port: String): Integer; |
procedure ForceServer(); |
function GetFreeSlot(): Integer; |
function GetIncomingConnections(): Integer; |
function GetLastRelease(): String; |
function GetLastVerZipFile(version, LocalOS: String): Boolean; |
function GetMiIP(): String; |
function GetNodeStatusString(): String; |
function GetOrderDetails(orderid: String): TOrderGroup; |
function GetOrderSources(orderid: String): String; |
function GetOS(): String; |
function GetOutGoingConnections(): Integer; |
function GetRepoFile(LurL: String): String; |
function GetSeedConnections(): Integer; |
function GetSlotFromContext(Context: TidContext): Int64; |
function GetSlotFromIP(Ip: String): Int64; |
function GetTotalSyncedConnections(): Integer; |
function GetValidSlotForSeed(out Slot: Integer): Boolean; |
function IsSafeIP(IP: String): Boolean; |
function IsSlotFree(number: Integer): Boolean; |
procedure LeerLineasDeClientes(); |
function NodeServerInfo(): String; |
function ReserveSlot(): Integer; |
function SaveConection(tipo, ipuser: String; contextdata: TIdContext; toSlot: Integer = -1): Integer; |
function SendOrderToNode(OrderString: String): String; |
procedure StartServer(); |
function StopServer(): Boolean; |
procedure SyncWithMainnet(); |
procedure VerifyConnectionStatus(); |
Description
Functions and Procedures
function CerrarClientes(ServerToo: Boolean = True): String; |
|
Close all outgoing connections |
procedure ClearReceivedOrdersIDs(); |
|
This item has no description. |
function ConnectClient(Address, Port: String): Integer; |
|
Connects a client and returns the slot |
procedure ForceServer(); |
|
This item has no description. |
function GetFreeSlot(): Integer; |
|
Function IsSlotConnected(number:integer):Boolean; Returns first available slot |
function GetIncomingConnections(): Integer; |
|
This item has no description. |
function GetLastRelease(): String; |
|
This item has no description. |
function GetLastVerZipFile(version, LocalOS: String): Boolean; |
|
This item has no description. |
function GetMiIP(): String; |
|
Function GetSyncTus():String; |
function GetNodeStatusString(): String; |
|
This item has no description. |
function GetOrderDetails(orderid: String): TOrderGroup; |
|
This item has no description. |
function GetOrderSources(orderid: String): String; |
|
This item has no description. |
function GetOS(): String; |
|
Retrieves the OS for download the lastest version |
function GetOutGoingConnections(): Integer; |
|
This item has no description. |
function GetRepoFile(LurL: String): String; |
|
This item has no description. |
function GetSeedConnections(): Integer; |
|
This item has no description. |
function GetSlotFromContext(Context: TidContext): Int64; |
|
RETURNS THE SLOT OF THE GIVEN CONTEXT |
function GetSlotFromIP(Ip: String): Int64; |
|
RETURNS THE SLOT OF THE GIVEN IP |
function GetTotalSyncedConnections(): Integer; |
|
function GetTotalConexiones():integer; function GetTotalVerifiedConnections():Integer; function GetTotalVerifiedConnections():Integer; var counter:integer; Begin result := 0; for counter := 1 to MaxConnections do if Connections[Counter].IsAuthenticated then result := result + 1; End; |
function GetValidSlotForSeed(out Slot: Integer): Boolean; |
|
This item has no description. |
function IsSafeIP(IP: String): Boolean; |
|
This item has no description. |
function IsSlotFree(number: Integer): Boolean; |
|
procedure CloseSlot(Slot:integer); |
procedure LeerLineasDeClientes(); |
|
This needs to be included on peers threads |
function NodeServerInfo(): String; |
|
This item has no description. |
function ReserveSlot(): Integer; |
|
Reserves the first available slot |
function SaveConection(tipo, ipuser: String; contextdata: TIdContext; toSlot: Integer = -1): Integer; |
|
function BotExists(IPUser:String):Boolean; function NodeExists(IPUser,Port:String):integer; Almacena una conexion con sus datos en el array Connections |
function SendOrderToNode(OrderString: String): String; |
|
Sends a order to the mainnet |
procedure StartServer(); |
|
Activa el servidor |
function StopServer(): Boolean; |
|
Apaga el servidor |
procedure SyncWithMainnet(); |
|
Function IsAllSynced():integer; Procedure UpdateMyData(); Request necessary files/info to update |
procedure VerifyConnectionStatus(); |
|
Checks the current connection status (0-3) |
Generated by PasDoc 0.16.0-snapshot.