C# 클래스 P2PStateServer.SetTransferRequest

Represents the SetTransferRequest message.
The SetTransferRequest message is sent by a peer to transfer a session resource to another peer. This message is only transmitted between peers.
상속: ServiceRequest
파일 보기 프로젝트 열기: tenor/p2pStateServer 1 사용 예제들

공개 메소드들

메소드 설명
Process ( ) : void

Process the message

Send ( AsyncMessageTracker connectedMsg, StateServer Service, string Resource, ISessionResponseInfo SessionInfo, byte Data, Action SuccessAction, Action FailAction, Action AlreadyExistsAction, Action PeerShuttingDownAction, System TimeoutAction, System.TimeSpan Timeout ) : void

Sends a SetTransferRequest message to a specified ServiceSocket

SetTransferRequest ( HTTPPartialData Data, StateServer Service ) : System

Initializes a new instance of the SetTransferRequest class

보호된 메소드들

메소드 설명
BuildResponse ( Type ResponseType, string ResponseMessage, ISessionResponseInfo ResponseInfo, byte Content ) : ResponseData

Generates an appropriate ResponseData object for this message, filled with supplied data

메소드 상세

BuildResponse() 보호된 메소드

Generates an appropriate ResponseData object for this message, filled with supplied data
protected BuildResponse ( Type ResponseType, string ResponseMessage, ISessionResponseInfo ResponseInfo, byte Content ) : ResponseData
ResponseType System.Type The Type of the Response message
ResponseMessage string The HTTP response reason phrase
ResponseInfo ISessionResponseInfo The session response information
Content byte The response data
리턴 ResponseData

Process() 공개 메소드

Process the message
public Process ( ) : void
리턴 void

Send() 공개 정적인 메소드

Sends a SetTransferRequest message to a specified ServiceSocket
public static Send ( AsyncMessageTracker connectedMsg, StateServer Service, string Resource, ISessionResponseInfo SessionInfo, byte Data, Action SuccessAction, Action FailAction, Action AlreadyExistsAction, Action PeerShuttingDownAction, System TimeoutAction, System.TimeSpan Timeout ) : void
connectedMsg AsyncMessageTracker AsyncMessageTracker holding connected socket
Service StateServer The state server instance
Resource string The URI associated with the message
SessionInfo ISessionResponseInfo The Session information used to populate fields in the message
Data byte The message data
SuccessAction Action The Action to call if the message was accepted
FailAction Action The Action to call if the message transmission failed or was refused
AlreadyExistsAction Action The Action to call if the recipient peer already has the URI
PeerShuttingDownAction Action The Action to call if the recipient peer is shutting down
TimeoutAction System The Action to call if the transfer timed out. This Action's processing time should be very short because a long list of Timeout actions can be daisy-chained and called one after the other
Timeout System.TimeSpan The timeout time span
리턴 void

SetTransferRequest() 공개 메소드

Initializes a new instance of the SetTransferRequest class
public SetTransferRequest ( HTTPPartialData Data, StateServer Service ) : System
Data HTTPPartialData The HTTPPartialData class to load this instance from
Service StateServer State server instance
리턴 System