C# 클래스 Terrarium.PeerToPeer.NetworkEngine

The NetworkEngine which encapsulates all of the peer to peer functionality of the Terrarium application.
파일 보기 프로젝트 열기: eugeniomiro/Terrarium 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
NetworkBehindNatMessage string

Private Properties

프로퍼티 타입 설명
AfterProcessRequest void
AnnounceAndRegisterPeer void
BeforeProcessRequest void
CountFailedTeleportationReceives void
CountFailedTeleportationSends void
CountLocalTeleportation void
CountRemoteTeleportation void
GetAllPeersFromConfig System.Data.DataSet
GetNetworkStatistics string
GetNumPeersFromConfig int
InitializeNetwork void
SetHostIPInformation void
ShutdownNetwork void
Teleport void
TeleportCallback void
ValidatePeer bool
WriteProtocolInfo void

공개 메소드들

메소드 설명
GetValueFromContent ( string startTag, string endTag, string content ) : string

Simple way to parse an XML tag for content. Doesn't confirm that the file is valid XML

GetValuesFromContent ( string startTag, string endTag, string content ) : ArrayList

Retrieves a collection of values delimited by tags from content. Doesn't confirm that the file is valid XML.

StartHttpNamespaceManager ( ) : void

Start the HTTP Listener used for Peer to Peer interaction.

StopHttpNamespaceManager ( ) : void

Stop the HTTP Listener used for Peer to Peer interaction.

비공개 메소드들

메소드 설명
AfterProcessRequest ( object sender, EventArgs e ) : void

Called when the HTTP listener is done processing a request

AnnounceAndRegisterPeer ( ) : void
BeforeProcessRequest ( object sender, EventArgs e ) : void

Called when the HTTP listener starts to process a request

CountFailedTeleportationReceives ( ) : void
CountFailedTeleportationSends ( ) : void
CountLocalTeleportation ( ) : void
CountRemoteTeleportation ( ) : void
GetAllPeersFromConfig ( string channel ) : DataSet
GetNetworkStatistics ( ) : string
GetNumPeersFromConfig ( string channel ) : int
InitializeNetwork ( string peerChannel, Terrarium.Forms.TerrariumLed leds ) : void
SetHostIPInformation ( ) : void
ShutdownNetwork ( ) : void
Teleport ( TeleportState state ) : void
TeleportCallback ( IAsyncResult ar ) : void
ValidatePeer ( string ipAddress ) : bool

Figure out if our local DNS thinks the passed in ipAddress is valid for us.

WriteProtocolInfo ( string output ) : void

메소드 상세

GetValueFromContent() 공개 정적인 메소드

Simple way to parse an XML tag for content. Doesn't confirm that the file is valid XML
public static GetValueFromContent ( string startTag, string endTag, string content ) : string
startTag string The start tag
endTag string The end tag
content string The content to be parsed.
리턴 string

GetValuesFromContent() 공개 정적인 메소드

Retrieves a collection of values delimited by tags from content. Doesn't confirm that the file is valid XML.
public static GetValuesFromContent ( string startTag, string endTag, string content ) : ArrayList
startTag string The start tag.
endTag string The end tag.
content string The content to parse.
리턴 System.Collections.ArrayList

StartHttpNamespaceManager() 공개 메소드

Start the HTTP Listener used for Peer to Peer interaction.
public StartHttpNamespaceManager ( ) : void
리턴 void

StopHttpNamespaceManager() 공개 메소드

Stop the HTTP Listener used for Peer to Peer interaction.
public StopHttpNamespaceManager ( ) : void
리턴 void

프로퍼티 상세

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

Message to show if the user is detected to be behind a NAT
public static string NetworkBehindNatMessage
리턴 string