C# Class bitmessage.Bitmessage

Inheritance: IDisposable
Show file Open project: sharpbitmessage/SharpBitmessage Class Usage Examples

Public Properties

Property Type Description
MemoryInventory MemoryInventory
NodeIsDisconnected System.Threading.AutoResetEvent

Public Methods

Method Description
AddSubscription ( Pubkey pubkey ) : void
Bitmessage ( bool start = true, string baseName = "bitmessage.sqlite", int port = 8444 ) : System
CreateRandomAddress ( string label, bool eighteenByteRipe = false ) : PrivateKey
DeleteSubscription ( Pubkey pubkey ) : void
Dispose ( ) : void
GeneratePrivateKey ( string label = null, bool eighteenByteRipe = false, bool send = false, bool save = true ) : PrivateKey
GetAllInboxMessages ( ) : IEnumerable
ListMyAddresses ( ) : IEnumerable
ListOtherAddresses ( ) : IEnumerable
OnNewPayload ( Payload payload ) : void
OnReceiveBroadcast ( Broadcast broadcast ) : void
OnReceiveInvalidBroadcast ( Broadcast broadcast ) : void
OnReceiveInvalidMsg ( Msg msg ) : void
OnReceiveInvalidPubkey ( Pubkey pubkey ) : void
OnReceiveMsg ( Msg msg ) : void
OnReceivePubkey ( Pubkey pubkey ) : void
SendBroadcast ( string fromAddress, string subject, string body, int encodingType = 2 ) : void
SendMessage ( string fromAddress, string toAddress, string subject, string body, int encodingType = 2 ) : void
Start ( ) : void
Subscriptions ( string stream ) : IEnumerable
TrashMessage ( string msgid ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AddNode ( NetworkAddress networkAddress ) : Task
ClientsControlLoop ( ) : void
DeleteNode ( NetworkAddress networkAddress ) : void
FindPrivateKey ( GetPubkey getpubkey ) : PrivateKey
ListenerLoop ( ) : void

Method Details

AddSubscription() public method

public AddSubscription ( Pubkey pubkey ) : void
pubkey bitmessage.network.Pubkey
return void

Bitmessage() public method

public Bitmessage ( bool start = true, string baseName = "bitmessage.sqlite", int port = 8444 ) : System
start bool
baseName string
port int
return System

CreateRandomAddress() public method

public CreateRandomAddress ( string label, bool eighteenByteRipe = false ) : PrivateKey
label string
eighteenByteRipe bool
return bitmessage.network.PrivateKey

DeleteSubscription() public method

public DeleteSubscription ( Pubkey pubkey ) : void
pubkey bitmessage.network.Pubkey
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GeneratePrivateKey() public method

public GeneratePrivateKey ( string label = null, bool eighteenByteRipe = false, bool send = false, bool save = true ) : PrivateKey
label string
eighteenByteRipe bool
send bool
save bool
return bitmessage.network.PrivateKey

GetAllInboxMessages() public method

public GetAllInboxMessages ( ) : IEnumerable
return IEnumerable

ListMyAddresses() public method

public ListMyAddresses ( ) : IEnumerable
return IEnumerable

ListOtherAddresses() public method

public ListOtherAddresses ( ) : IEnumerable
return IEnumerable

OnNewPayload() public method

public OnNewPayload ( Payload payload ) : void
payload bitmessage.network.Payload
return void

OnReceiveBroadcast() public method

public OnReceiveBroadcast ( Broadcast broadcast ) : void
broadcast bitmessage.network.Broadcast
return void

OnReceiveInvalidBroadcast() public method

public OnReceiveInvalidBroadcast ( Broadcast broadcast ) : void
broadcast bitmessage.network.Broadcast
return void

OnReceiveInvalidMsg() public method

public OnReceiveInvalidMsg ( Msg msg ) : void
msg bitmessage.network.Msg
return void

OnReceiveInvalidPubkey() public method

public OnReceiveInvalidPubkey ( Pubkey pubkey ) : void
pubkey bitmessage.network.Pubkey
return void

OnReceiveMsg() public method

public OnReceiveMsg ( Msg msg ) : void
msg bitmessage.network.Msg
return void

OnReceivePubkey() public method

public OnReceivePubkey ( Pubkey pubkey ) : void
pubkey bitmessage.network.Pubkey
return void

SendBroadcast() public method

public SendBroadcast ( string fromAddress, string subject, string body, int encodingType = 2 ) : void
fromAddress string
subject string
body string
encodingType int
return void

SendMessage() public method

public SendMessage ( string fromAddress, string toAddress, string subject, string body, int encodingType = 2 ) : void
fromAddress string
toAddress string
subject string
body string
encodingType int
return void

Start() public method

public Start ( ) : void
return void

Subscriptions() public method

public Subscriptions ( string stream ) : IEnumerable
stream string
return IEnumerable

TrashMessage() public method

public TrashMessage ( string msgid ) : void
msgid string
return void

Property Details

MemoryInventory public property

public MemoryInventory MemoryInventory
return MemoryInventory

NodeIsDisconnected public property

public AutoResetEvent,System.Threading NodeIsDisconnected
return System.Threading.AutoResetEvent