C# 클래스 BitSharp.Network.Messaging

파일 보기 프로젝트 열기: pmlyon/BitSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MAGIC_COMPARISON_TOOL System.UInt32
MAGIC_MAIN System.UInt32
MAGIC_TESTNET3 System.UInt32
PROTOCOL_VERSION System.UInt32
SERVICES_BITFIELD System.UInt64
USER_AGENT string

공개 메소드들

메소드 설명
BytesToIPAddress ( byte bytes ) : IPAddress
CalculatePayloadChecksum ( byte payload ) : UInt32
ConstructGetBlocksPayload ( ImmutableArray blockLocatorHashes, UInt256 hashStop ) : BitSharp.Network.GetBlocksPayload
ConstructInventoryPayload ( ImmutableArray invVectors ) : BitSharp.Network.InventoryPayload
ConstructMessage ( string command, byte payload ) : BitSharp.Network.Message
ConstructNetworkAddress ( IPAddress ip, int port ) : BitSharp.Network.NetworkAddress
ConstructNetworkAddressWithTime ( DateTimeOffset time, IPAddress ip, int port ) : BitSharp.Network.NetworkAddressWithTime
ConstructVersionPayload ( IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, System.UInt64 nodeId, UInt32 startBlockHeight ) : BitSharp.Network.VersionPayload
GetExternalIPAddress ( ) : IPAddress
GetExternalIPEndPoint ( ) : IPEndPoint
IPAddressToBytes ( IPAddress ipAddress ) : byte[]
VerifyPayloadChecksum ( UInt32 checksum, byte payload ) : bool

메소드 상세

BytesToIPAddress() 공개 정적인 메소드

public static BytesToIPAddress ( byte bytes ) : IPAddress
bytes byte
리턴 System.Net.IPAddress

CalculatePayloadChecksum() 공개 정적인 메소드

public static CalculatePayloadChecksum ( byte payload ) : UInt32
payload byte
리턴 System.UInt32

ConstructGetBlocksPayload() 공개 정적인 메소드

public static ConstructGetBlocksPayload ( ImmutableArray blockLocatorHashes, UInt256 hashStop ) : BitSharp.Network.GetBlocksPayload
blockLocatorHashes ImmutableArray
hashStop UInt256
리턴 BitSharp.Network.GetBlocksPayload

ConstructInventoryPayload() 공개 정적인 메소드

public static ConstructInventoryPayload ( ImmutableArray invVectors ) : BitSharp.Network.InventoryPayload
invVectors ImmutableArray
리턴 BitSharp.Network.InventoryPayload

ConstructMessage() 공개 정적인 메소드

public static ConstructMessage ( string command, byte payload ) : BitSharp.Network.Message
command string
payload byte
리턴 BitSharp.Network.Message

ConstructNetworkAddress() 공개 정적인 메소드

public static ConstructNetworkAddress ( IPAddress ip, int port ) : BitSharp.Network.NetworkAddress
ip System.Net.IPAddress
port int
리턴 BitSharp.Network.NetworkAddress

ConstructNetworkAddressWithTime() 공개 정적인 메소드

public static ConstructNetworkAddressWithTime ( DateTimeOffset time, IPAddress ip, int port ) : BitSharp.Network.NetworkAddressWithTime
time DateTimeOffset
ip System.Net.IPAddress
port int
리턴 BitSharp.Network.NetworkAddressWithTime

ConstructVersionPayload() 공개 정적인 메소드

public static ConstructVersionPayload ( IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, System.UInt64 nodeId, UInt32 startBlockHeight ) : BitSharp.Network.VersionPayload
localEndPoint System.Net.IPEndPoint
remoteEndPoint System.Net.IPEndPoint
nodeId System.UInt64
startBlockHeight System.UInt32
리턴 BitSharp.Network.VersionPayload

GetExternalIPAddress() 공개 정적인 메소드

public static GetExternalIPAddress ( ) : IPAddress
리턴 System.Net.IPAddress

GetExternalIPEndPoint() 공개 정적인 메소드

public static GetExternalIPEndPoint ( ) : IPEndPoint
리턴 System.Net.IPEndPoint

IPAddressToBytes() 공개 정적인 메소드

public static IPAddressToBytes ( IPAddress ipAddress ) : byte[]
ipAddress System.Net.IPAddress
리턴 byte[]

VerifyPayloadChecksum() 공개 정적인 메소드

public static VerifyPayloadChecksum ( UInt32 checksum, byte payload ) : bool
checksum System.UInt32
payload byte
리턴 bool

프로퍼티 상세

MAGIC_COMPARISON_TOOL 공개적으로 정적으로 프로퍼티

public static UInt32,System MAGIC_COMPARISON_TOOL
리턴 System.UInt32

MAGIC_MAIN 공개적으로 정적으로 프로퍼티

public static UInt32,System MAGIC_MAIN
리턴 System.UInt32

MAGIC_TESTNET3 공개적으로 정적으로 프로퍼티

public static UInt32,System MAGIC_TESTNET3
리턴 System.UInt32

PROTOCOL_VERSION 공개적으로 정적으로 프로퍼티

public static UInt32,System PROTOCOL_VERSION
리턴 System.UInt32

SERVICES_BITFIELD 공개적으로 정적으로 프로퍼티

public static UInt64,System SERVICES_BITFIELD
리턴 System.UInt64

USER_AGENT 공개적으로 정적으로 프로퍼티

public static string USER_AGENT
리턴 string