C# Class DeOps.Implementation.OpCore

ファイルを表示 Open project: swax/DeOps Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
AddService ( OpService service ) : void
RunInCoreThread ( Delegate method ) : AsyncCoreFunction

Method Details

ConsoleCommand() public method

public ConsoleCommand ( string command ) : void
command string
return void

ConsoleLog() public method

public ConsoleLog ( string message ) : void
message string
return void

CreateBootstrapLink() public method

public CreateBootstrapLink ( DeOps.Implementation.Dht.DhtContact contact ) : string
contact DeOps.Implementation.Dht.DhtContact
return string

CreateBootstrapLink() public method

public CreateBootstrapLink ( ulong userid, IPAddress ip, ushort tcpPort, ushort udpPort ) : string
userid ulong
ip System.Net.IPAddress
tcpPort ushort
udpPort ushort
return string

Exit() public method

public Exit ( ) : void
return void

GenerateInvite() public method

public GenerateInvite ( string pubLink, string &name ) : string
pubLink string
name string
return string

GetIdentity() public method

public GetIdentity ( ulong user ) : string
user ulong
return string

GetMyAddress() public method

public GetMyAddress ( ) : string
return string

GetName() public method

public GetName ( ulong user ) : string
user ulong
return string

GetService() public method

public GetService ( uint id ) : OpService
id uint
return OpService

GetServiceName() public method

public GetServiceName ( uint id ) : string
id uint
return string

GetTempPath() public method

public GetTempPath ( ) : string
return string

IndexInfo() public method

public IndexInfo ( UserInfo info ) : void
info UserInfo
return void

IndexKey() public method

public IndexKey ( ulong id, byte &key ) : void
id ulong
key byte
return void

IndexName() public method

public IndexName ( ulong user, string name ) : void
user ulong
name string
return void

MakeNews() public method

public MakeNews ( uint service, string message, ulong userID, uint project, bool showRemote ) : void
service uint
message string
userID ulong
project uint
showRemote bool
return void

NewsWorthy() public method

public NewsWorthy ( ulong id, uint project, bool localRegionOnly ) : bool
id ulong
project uint
localRegionOnly bool
return bool

OpCore() public method

public OpCore ( DeOpsContext context ) : System
context DeOpsContext
return System

OpCore() public method

public OpCore ( DeOpsContext context, string userPath, string pass ) : System
context DeOpsContext
userPath string
pass string
return System

OpenInvite() public static method

public static OpenInvite ( byte decrypted, DeOps.Implementation.Protocol.G2Protocol protocol ) : InvitePackage
decrypted byte
protocol DeOps.Implementation.Protocol.G2Protocol
return InvitePackage

ProcessInvite() public method

public ProcessInvite ( InvitePackage invite ) : void
invite InvitePackage
return void

RenameUser() public method

public RenameUser ( ulong user, string name ) : void
user ulong
name string
return void

ResizeBandwidthRecord() public method

public ResizeBandwidthRecord ( int seconds ) : void
seconds int
return void

RunCore() public method

public RunCore ( ) : void
return void

RunInCoreAsync() public method

public RunInCoreAsync ( System.Action code ) : void
code System.Action
return void

RunInCoreBlocked() public method

public RunInCoreBlocked ( System.Action code ) : void
code System.Action
return void

RunInGuiThread() public method

public RunInGuiThread ( Delegate method ) : void
method System.Delegate
return void

SaveKeyIndex() public method

public SaveKeyIndex ( DeOps.Implementation.Protocol.PacketStream stream ) : void
stream DeOps.Implementation.Protocol.PacketStream
return void

SecondTimer() public method

public SecondTimer ( ) : void
return void

SetFirewallType() public method

public SetFirewallType ( FirewallType type ) : void
type FirewallType
return void

UserConfirm() public method

public UserConfirm ( string message, string title ) : bool
message string
title string
return bool

UserMessage() public method

public UserMessage ( string message ) : void
message string
return void

UserVerifyPass() public method

public UserVerifyPass ( ThreatLevel threatLevel ) : bool
threatLevel ThreatLevel
return bool

Property Details

Buddies public_oe property

public BuddyService,DeOps.Services.Buddy Buddies
return DeOps.Services.Buddy.BuddyService

ConsoleText public_oe property

public Queue,System.Collections ConsoleText
return System.Collections.Queue

Context public_oe property

public DeOpsContext Context
return DeOpsContext

CoreMessages public_oe property

public Queue CoreMessages
return Queue

DebugWindowsActive public_oe property

public bool DebugWindowsActive
return bool

DhtServiceID public_oe property

public ushort DhtServiceID
return ushort

Firewall public_oe property

public FirewallType Firewall
return FirewallType

GuiProtocol public_oe property

public G2Protocol,DeOps.Implementation.Protocol GuiProtocol
return DeOps.Implementation.Protocol.G2Protocol

KeepData public_oe property

public ThreadedDictionary KeepData
return bool>.ThreadedDictionary

KeyMap public_oe property

public Dictionary KeyMap
return byte[]>.Dictionary

LocalIP public_oe property

public IPAddress,System.Net LocalIP
return System.Net.IPAddress

Locations public_oe property

public LocationService Locations
return LocationService

NameMap public_oe property

public ThreadedDictionary NameMap
return string>.ThreadedDictionary

Network public_oe property

public DhtNetwork,DeOps.Implementation.Dht Network
return DeOps.Implementation.Dht.DhtNetwork

PauseLog public_oe property

public bool PauseLog
return bool

ProcessEvent public_oe property

public AutoResetEvent,System.Threading ProcessEvent
return System.Threading.AutoResetEvent

RecordBandwidthSeconds public_oe property

public int RecordBandwidthSeconds
return int

RndGen public_oe property

public Random,System RndGen
return System.Random

ServiceBandwidth public_oe property

public Dictionary ServiceBandwidth
return BandwidthLog>.Dictionary

ServiceMap public_oe property

public Dictionary ServiceMap
return OpService>.Dictionary

Sim public_oe property

public SimInstance,DeOps.Simulator Sim
return DeOps.Simulator.SimInstance

StartTime public_oe property

public DateTime,System StartTime
return System.DateTime

StrongRndGen public_oe property

public RNGCryptoServiceProvider,System.Security.Cryptography StrongRndGen
return System.Security.Cryptography.RNGCryptoServiceProvider

Sync public_oe property

public LocalSync,DeOps.Services.Assist Sync
return DeOps.Services.Assist.LocalSync

TextGen public_oe property

public LipsumGenerator,NLipsum.Core TextGen
return NLipsum.Core.LipsumGenerator

Transfers public_oe property

public TransferService Transfers
return TransferService

Trust public_oe property

public TrustService,DeOps.Services.Trust Trust
return DeOps.Services.Trust.TrustService

TunnelID public_oe property

public ushort TunnelID
return ushort

Update public_oe property

public UpdateService,DeOps.Services.Update Update
return DeOps.Services.Update.UpdateService

User public_oe property

public OpUser User
return OpUser