C# Class Ipop.SocialVPN.SocialNode

Inheritance: Ipop.Managed.ManagedIpopNode
Exibir arquivo Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_address string
_friends SocialUser>.ImmutableDictionary
_managed_co Brunet.Connections.ManagedConnectionOverlord
_rsa System.Security.Cryptography.RSACryptoServiceProvider
_user WriteOnce

Public Methods

Method Description
AddFriend ( string address, string cert, string uid, string ip ) : SocialUser
Block ( string address ) : void
Close ( ) : void
CreateNode ( ) : SocialNode
GetNatType ( ) : string
GetStats ( string address ) : string
IsAllowed ( string address ) : bool
Main ( string args ) : void
RemoveFriend ( string address ) : void
SetUid ( string uid ) : void
SetUid ( string uid, string pcid ) : void
SocialNode ( NodeConfig brunetConfig, IpopConfig ipopConfig, RSACryptoServiceProvider rsa ) : System
Unblock ( string address ) : void

Protected Methods

Method Description
HandleShutdown ( object state ) : void

Method Details

AddFriend() public method

public AddFriend ( string address, string cert, string uid, string ip ) : SocialUser
address string
cert string
uid string
ip string
return SocialUser

Block() public method

public Block ( string address ) : void
address string
return void

Close() public method

public Close ( ) : void
return void

CreateNode() public static method

public static CreateNode ( ) : SocialNode
return SocialNode

GetNatType() public method

public GetNatType ( ) : string
return string

GetStats() public method

public GetStats ( string address ) : string
address string
return string

HandleShutdown() protected method

protected HandleShutdown ( object state ) : void
state object
return void

IsAllowed() public method

public IsAllowed ( string address ) : bool
address string
return bool

Main() public static method

public static Main ( string args ) : void
args string
return void

RemoveFriend() public method

public RemoveFriend ( string address ) : void
address string
return void

SetUid() public method

public SetUid ( string uid ) : void
uid string
return void

SetUid() public method

public SetUid ( string uid, string pcid ) : void
uid string
pcid string
return void

SocialNode() public method

public SocialNode ( NodeConfig brunetConfig, IpopConfig ipopConfig, RSACryptoServiceProvider rsa ) : System
brunetConfig Brunet.Applications.NodeConfig
ipopConfig Ipop.IpopConfig
rsa System.Security.Cryptography.RSACryptoServiceProvider
return System

Unblock() public method

public Unblock ( string address ) : void
address string
return void

Property Details

_address protected_oe property

protected string _address
return string

_friends protected_oe property

protected ImmutableDictionary _friends
return SocialUser>.ImmutableDictionary

_managed_co protected_oe property

protected Brunet.Connections.ManagedConnectionOverlord _managed_co
return Brunet.Connections.ManagedConnectionOverlord

_rsa protected_oe property

protected RSACryptoServiceProvider,System.Security.Cryptography _rsa
return System.Security.Cryptography.RSACryptoServiceProvider

_user protected_oe property

protected WriteOnce _user
return WriteOnce