C# Класс DeOps.Implementation.OpCore

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Buddies DeOps.Services.Buddy.BuddyService
ConsoleText System.Collections.Queue
Context DeOpsContext
CoreMessages Queue
DebugWindowsActive bool
DhtServiceID ushort
Firewall FirewallType
GuiProtocol DeOps.Implementation.Protocol.G2Protocol
KeepData bool>.ThreadedDictionary
KeyMap byte[]>.Dictionary
LocalIP System.Net.IPAddress
Locations LocationService
NameMap string>.ThreadedDictionary
Network DeOps.Implementation.Dht.DhtNetwork
PauseLog bool
ProcessEvent System.Threading.AutoResetEvent
RecordBandwidthSeconds int
RndGen System.Random
ServiceBandwidth BandwidthLog>.Dictionary
ServiceMap OpService>.Dictionary
Sim DeOps.Simulator.SimInstance
StartTime System.DateTime
StrongRndGen System.Security.Cryptography.RNGCryptoServiceProvider
Sync DeOps.Services.Assist.LocalSync
TextGen NLipsum.Core.LipsumGenerator
Transfers TransferService
Trust DeOps.Services.Trust.TrustService
TunnelID ushort
Update DeOps.Services.Update.UpdateService
User OpUser

Открытые методы

Метод Описание
ConsoleCommand ( string command ) : void
ConsoleLog ( string message ) : void
CreateBootstrapLink ( DeOps.Implementation.Dht.DhtContact contact ) : string
CreateBootstrapLink ( ulong userid, IPAddress ip, ushort tcpPort, ushort udpPort ) : string
Exit ( ) : void
GenerateInvite ( string pubLink, string &name ) : string
GetIdentity ( ulong user ) : string
GetMyAddress ( ) : string
GetName ( ulong user ) : string
GetService ( uint id ) : OpService
GetServiceName ( uint id ) : string
GetTempPath ( ) : string
IndexInfo ( UserInfo info ) : void
IndexKey ( ulong id, byte &key ) : void
IndexName ( ulong user, string name ) : void
MakeNews ( uint service, string message, ulong userID, uint project, bool showRemote ) : void
NewsWorthy ( ulong id, uint project, bool localRegionOnly ) : bool
OpCore ( DeOpsContext context ) : System
OpCore ( DeOpsContext context, string userPath, string pass ) : System
OpenInvite ( byte decrypted, DeOps.Implementation.Protocol.G2Protocol protocol ) : InvitePackage
ProcessInvite ( InvitePackage invite ) : void
RenameUser ( ulong user, string name ) : void
ResizeBandwidthRecord ( int seconds ) : void
RunCore ( ) : void
RunInCoreAsync ( System.Action code ) : void
RunInCoreBlocked ( System.Action code ) : void
RunInGuiThread ( Delegate method ) : void
SaveKeyIndex ( DeOps.Implementation.Protocol.PacketStream stream ) : void
SecondTimer ( ) : void
SetFirewallType ( FirewallType type ) : void
UserConfirm ( string message, string title ) : bool
UserMessage ( string message ) : void
UserVerifyPass ( ThreatLevel threatLevel ) : bool

Приватные методы

Метод Описание
AddService ( OpService service ) : void
RunInCoreThread ( Delegate method ) : AsyncCoreFunction

Описание методов

ConsoleCommand() публичный Метод

public ConsoleCommand ( string command ) : void
command string
Результат void

ConsoleLog() публичный Метод

public ConsoleLog ( string message ) : void
message string
Результат void

CreateBootstrapLink() публичный Метод

public CreateBootstrapLink ( DeOps.Implementation.Dht.DhtContact contact ) : string
contact DeOps.Implementation.Dht.DhtContact
Результат string

CreateBootstrapLink() публичный Метод

public CreateBootstrapLink ( ulong userid, IPAddress ip, ushort tcpPort, ushort udpPort ) : string
userid ulong
ip System.Net.IPAddress
tcpPort ushort
udpPort ushort
Результат string

Exit() публичный Метод

public Exit ( ) : void
Результат void

GenerateInvite() публичный Метод

public GenerateInvite ( string pubLink, string &name ) : string
pubLink string
name string
Результат string

GetIdentity() публичный Метод

public GetIdentity ( ulong user ) : string
user ulong
Результат string

GetMyAddress() публичный Метод

public GetMyAddress ( ) : string
Результат string

GetName() публичный Метод

public GetName ( ulong user ) : string
user ulong
Результат string

GetService() публичный Метод

public GetService ( uint id ) : OpService
id uint
Результат OpService

GetServiceName() публичный Метод

public GetServiceName ( uint id ) : string
id uint
Результат string

GetTempPath() публичный Метод

public GetTempPath ( ) : string
Результат string

IndexInfo() публичный Метод

public IndexInfo ( UserInfo info ) : void
info UserInfo
Результат void

IndexKey() публичный Метод

public IndexKey ( ulong id, byte &key ) : void
id ulong
key byte
Результат void

IndexName() публичный Метод

public IndexName ( ulong user, string name ) : void
user ulong
name string
Результат void

MakeNews() публичный Метод

public MakeNews ( uint service, string message, ulong userID, uint project, bool showRemote ) : void
service uint
message string
userID ulong
project uint
showRemote bool
Результат void

NewsWorthy() публичный Метод

public NewsWorthy ( ulong id, uint project, bool localRegionOnly ) : bool
id ulong
project uint
localRegionOnly bool
Результат bool

OpCore() публичный Метод

public OpCore ( DeOpsContext context ) : System
context DeOpsContext
Результат System

OpCore() публичный Метод

public OpCore ( DeOpsContext context, string userPath, string pass ) : System
context DeOpsContext
userPath string
pass string
Результат System

OpenInvite() публичный статический Метод

public static OpenInvite ( byte decrypted, DeOps.Implementation.Protocol.G2Protocol protocol ) : InvitePackage
decrypted byte
protocol DeOps.Implementation.Protocol.G2Protocol
Результат InvitePackage

ProcessInvite() публичный Метод

public ProcessInvite ( InvitePackage invite ) : void
invite InvitePackage
Результат void

RenameUser() публичный Метод

public RenameUser ( ulong user, string name ) : void
user ulong
name string
Результат void

ResizeBandwidthRecord() публичный Метод

public ResizeBandwidthRecord ( int seconds ) : void
seconds int
Результат void

RunCore() публичный Метод

public RunCore ( ) : void
Результат void

RunInCoreAsync() публичный Метод

public RunInCoreAsync ( System.Action code ) : void
code System.Action
Результат void

RunInCoreBlocked() публичный Метод

public RunInCoreBlocked ( System.Action code ) : void
code System.Action
Результат void

RunInGuiThread() публичный Метод

public RunInGuiThread ( Delegate method ) : void
method System.Delegate
Результат void

SaveKeyIndex() публичный Метод

public SaveKeyIndex ( DeOps.Implementation.Protocol.PacketStream stream ) : void
stream DeOps.Implementation.Protocol.PacketStream
Результат void

SecondTimer() публичный Метод

public SecondTimer ( ) : void
Результат void

SetFirewallType() публичный Метод

public SetFirewallType ( FirewallType type ) : void
type FirewallType
Результат void

UserConfirm() публичный Метод

public UserConfirm ( string message, string title ) : bool
message string
title string
Результат bool

UserMessage() публичный Метод

public UserMessage ( string message ) : void
message string
Результат void

UserVerifyPass() публичный Метод

public UserVerifyPass ( ThreatLevel threatLevel ) : bool
threatLevel ThreatLevel
Результат bool

Описание свойств

Buddies публичное свойство

public BuddyService,DeOps.Services.Buddy Buddies
Результат DeOps.Services.Buddy.BuddyService

ConsoleText публичное свойство

public Queue,System.Collections ConsoleText
Результат System.Collections.Queue

Context публичное свойство

public DeOpsContext Context
Результат DeOpsContext

CoreMessages публичное свойство

public Queue CoreMessages
Результат Queue

DebugWindowsActive публичное свойство

public bool DebugWindowsActive
Результат bool

DhtServiceID публичное свойство

public ushort DhtServiceID
Результат ushort

Firewall публичное свойство

public FirewallType Firewall
Результат FirewallType

GuiProtocol публичное свойство

public G2Protocol,DeOps.Implementation.Protocol GuiProtocol
Результат DeOps.Implementation.Protocol.G2Protocol

KeepData публичное свойство

public ThreadedDictionary KeepData
Результат bool>.ThreadedDictionary

KeyMap публичное свойство

public Dictionary KeyMap
Результат byte[]>.Dictionary

LocalIP публичное свойство

public IPAddress,System.Net LocalIP
Результат System.Net.IPAddress

Locations публичное свойство

public LocationService Locations
Результат LocationService

NameMap публичное свойство

public ThreadedDictionary NameMap
Результат string>.ThreadedDictionary

Network публичное свойство

public DhtNetwork,DeOps.Implementation.Dht Network
Результат DeOps.Implementation.Dht.DhtNetwork

PauseLog публичное свойство

public bool PauseLog
Результат bool

ProcessEvent публичное свойство

public AutoResetEvent,System.Threading ProcessEvent
Результат System.Threading.AutoResetEvent

RecordBandwidthSeconds публичное свойство

public int RecordBandwidthSeconds
Результат int

RndGen публичное свойство

public Random,System RndGen
Результат System.Random

ServiceBandwidth публичное свойство

public Dictionary ServiceBandwidth
Результат BandwidthLog>.Dictionary

ServiceMap публичное свойство

public Dictionary ServiceMap
Результат OpService>.Dictionary

Sim публичное свойство

public SimInstance,DeOps.Simulator Sim
Результат DeOps.Simulator.SimInstance

StartTime публичное свойство

public DateTime,System StartTime
Результат System.DateTime

StrongRndGen публичное свойство

public RNGCryptoServiceProvider,System.Security.Cryptography StrongRndGen
Результат System.Security.Cryptography.RNGCryptoServiceProvider

Sync публичное свойство

public LocalSync,DeOps.Services.Assist Sync
Результат DeOps.Services.Assist.LocalSync

TextGen публичное свойство

public LipsumGenerator,NLipsum.Core TextGen
Результат NLipsum.Core.LipsumGenerator

Transfers публичное свойство

public TransferService Transfers
Результат TransferService

Trust публичное свойство

public TrustService,DeOps.Services.Trust Trust
Результат DeOps.Services.Trust.TrustService

TunnelID публичное свойство

public ushort TunnelID
Результат ushort

Update публичное свойство

public UpdateService,DeOps.Services.Update Update
Результат DeOps.Services.Update.UpdateService

User публичное свойство

public OpUser User
Результат OpUser