C# 클래스 ModServer.HttpConnection

This class is uses Microsoft's implementation of SSL. Most of the code is copied from: http://msdn.microsoft.com/en-us/library/system.net.security.sslstream%28v=vs.110%29.aspx
파일 보기 프로젝트 열기: tyandjel94/RowanParkingPassApp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BUFFER_SIZE int
CHUNKED_TERMINATOR string
DL_CACHE_SIZE long
stream Stream

공개 메소드들

메소드 설명
HttpConnection ( string address, int port, string servername, Stream stream ) : System
awaitMessage ( ) : HttpResponse
close ( ) : void
continueDownload ( Stream output, HttpResponse response, Action setup, Action step ) : bool
continueDownload ( Stream output, HttpResponse response, Action setup, Action step, System.Action whenfinished ) : bool
nullAction ( int param1 ) : void
sendRequest ( HttpRequest request ) : HttpResponse
sendRequestAsync ( HttpRequest request, AwaitMessageCallback callBack ) : Thread

MOVED the requesting to a new thread and added the callBack error

takeByte ( byte buffer ) : byte[]

비공개 메소드들

메소드 설명
processResponse ( HttpResponse response ) : HttpResponse

메소드 상세

HttpConnection() 공개 메소드

public HttpConnection ( string address, int port, string servername, Stream stream ) : System
address string
port int
servername string
stream Stream
리턴 System

awaitMessage() 공개 메소드

public awaitMessage ( ) : HttpResponse
리턴 HttpResponse

close() 공개 메소드

public close ( ) : void
리턴 void

continueDownload() 공개 메소드

public continueDownload ( Stream output, HttpResponse response, Action setup, Action step ) : bool
output Stream
response HttpResponse
setup Action
step Action
리턴 bool

continueDownload() 공개 메소드

public continueDownload ( Stream output, HttpResponse response, Action setup, Action step, System.Action whenfinished ) : bool
output Stream
response HttpResponse
setup Action
step Action
whenfinished System.Action
리턴 bool

nullAction() 공개 정적인 메소드

public static nullAction ( int param1 ) : void
param1 int
리턴 void

sendRequest() 공개 메소드

public sendRequest ( HttpRequest request ) : HttpResponse
request HttpRequest
리턴 HttpResponse

sendRequestAsync() 공개 메소드

MOVED the requesting to a new thread and added the callBack error
public sendRequestAsync ( HttpRequest request, AwaitMessageCallback callBack ) : Thread
request HttpRequest
callBack AwaitMessageCallback response null if exception. exception null otehrwise
리턴 Thread

takeByte() 공개 메소드

public takeByte ( byte buffer ) : byte[]
buffer byte
리턴 byte[]

프로퍼티 상세

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

public static int BUFFER_SIZE
리턴 int

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

public static string CHUNKED_TERMINATOR
리턴 string

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

public static long DL_CACHE_SIZE
리턴 long

stream 공개적으로 프로퍼티

public Stream stream
리턴 Stream