C# Class Ipop.SocialVPN.SocialConnectionManager

Inheritance: IRpcHandler, IRpcSender
ファイルを表示 Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_blocked ImmutableList
_fprs string>.ImmutableDictionary
_networks ISocialNetwork>.ImmutableDictionary
_node SocialNode
_pending ImmutableList
_rpc RpcManager
_sdm SocialDnsManager
_ssm SocialStatsManager
_timer Timer
_times DateTime>.ImmutableDictionary

Public Methods

Method Description
GetState ( bool write ) : string
HandleRpc ( ISender caller, string method, IList args, object req_state ) : void
LoadState ( ) : void
Login ( string name, string uid, string password ) : void
Logout ( string name ) : void
ProcessHandler ( Object obj, EventArgs eargs ) : void
Register ( string name, ISocialNetwork network ) : void
SendRpcMessage ( string address, string method, string msg ) : void
SocialConnectionManager ( SocialNode node, RpcManager rpc, SocialDnsManager sdm, SocialStatsManager ssm, SocialConfig config ) : System
TimerHandler ( object obj ) : void

Protected Methods

Method Description
AddCertReply ( string address, string msg ) : string
AddCertRequest ( string address, string msg ) : string
AddFriend ( string address, string cert ) : void
AddToPending ( string address ) : void
Block ( string address ) : void
GetPending ( ) : void
HandlePing ( string address, string msg ) : string
IsOffline ( string address ) : bool
IsVerified ( SocialUser user ) : bool
PingFriends ( ) : void
SendCertRequest ( string address ) : void
SendRpcMessage ( Brunet.Address addr, string method, string query, bool secure ) : void
SendRpcMessage ( string address, string method, string query, bool secure ) : void
Unblock ( string address ) : void
VerifyFriends ( ) : void

Method Details

AddCertReply() protected method

protected AddCertReply ( string address, string msg ) : string
address string
msg string
return string

AddCertRequest() protected method

protected AddCertRequest ( string address, string msg ) : string
address string
msg string
return string

AddFriend() protected method

protected AddFriend ( string address, string cert ) : void
address string
cert string
return void

AddToPending() protected method

protected AddToPending ( string address ) : void
address string
return void

Block() protected method

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

GetPending() protected method

protected GetPending ( ) : void
return void

GetState() public method

public GetState ( bool write ) : string
write bool
return string

HandlePing() protected method

protected HandlePing ( string address, string msg ) : string
address string
msg string
return string

HandleRpc() public method

public HandleRpc ( ISender caller, string method, IList args, object req_state ) : void
caller ISender
method string
args IList
req_state object
return void

IsOffline() protected method

protected IsOffline ( string address ) : bool
address string
return bool

IsVerified() protected method

protected IsVerified ( SocialUser user ) : bool
user SocialUser
return bool

LoadState() public method

public LoadState ( ) : void
return void

Login() public method

public Login ( string name, string uid, string password ) : void
name string
uid string
password string
return void

Logout() public method

public Logout ( string name ) : void
name string
return void

PingFriends() protected method

protected PingFriends ( ) : void
return void

ProcessHandler() public method

public ProcessHandler ( Object obj, EventArgs eargs ) : void
obj Object
eargs System.EventArgs
return void

Register() public method

public Register ( string name, ISocialNetwork network ) : void
name string
network ISocialNetwork
return void

SendCertRequest() protected method

protected SendCertRequest ( string address ) : void
address string
return void

SendRpcMessage() protected method

protected SendRpcMessage ( Brunet.Address addr, string method, string query, bool secure ) : void
addr Brunet.Address
method string
query string
secure bool
return void

SendRpcMessage() public method

public SendRpcMessage ( string address, string method, string msg ) : void
address string
method string
msg string
return void

SendRpcMessage() protected method

protected SendRpcMessage ( string address, string method, string query, bool secure ) : void
address string
method string
query string
secure bool
return void

SocialConnectionManager() public method

public SocialConnectionManager ( SocialNode node, RpcManager rpc, SocialDnsManager sdm, SocialStatsManager ssm, SocialConfig config ) : System
node SocialNode
rpc RpcManager
sdm SocialDnsManager
ssm SocialStatsManager
config SocialConfig
return System

TimerHandler() public method

public TimerHandler ( object obj ) : void
obj object
return void

Unblock() protected method

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

VerifyFriends() protected method

protected VerifyFriends ( ) : void
return void

Property Details

_blocked protected_oe property

protected ImmutableList _blocked
return ImmutableList

_fprs protected_oe property

protected ImmutableDictionary _fprs
return string>.ImmutableDictionary

_networks protected_oe property

protected ImmutableDictionary _networks
return ISocialNetwork>.ImmutableDictionary

_node protected_oe property

protected SocialNode _node
return SocialNode

_pending protected_oe property

protected ImmutableList _pending
return ImmutableList

_rpc protected_oe property

protected RpcManager _rpc
return RpcManager

_sdm protected_oe property

protected SocialDnsManager _sdm
return SocialDnsManager

_ssm protected_oe property

protected SocialStatsManager _ssm
return SocialStatsManager

_timer protected_oe property

protected Timer _timer
return Timer

_times protected_oe property

protected ImmutableDictionary _times
return DateTime>.ImmutableDictionary