C# Class 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
Afficher le fichier Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Méthodes publiques

Свойство Type Description
BUFFER_SIZE int
CHUNKED_TERMINATOR string
DL_CACHE_SIZE long
stream Stream

Méthodes publiques

Méthode Description
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[]

Private Methods

Méthode Description
processResponse ( HttpResponse response ) : HttpResponse

Method Details

HttpConnection() public méthode

public HttpConnection ( string address, int port, string servername, Stream stream ) : System
address string
port int
servername string
stream Stream
Résultat System

awaitMessage() public méthode

public awaitMessage ( ) : HttpResponse
Résultat HttpResponse

close() public méthode

public close ( ) : void
Résultat void

continueDownload() public méthode

public continueDownload ( Stream output, HttpResponse response, Action setup, Action step ) : bool
output Stream
response HttpResponse
setup Action
step Action
Résultat bool

continueDownload() public méthode

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
Résultat bool

nullAction() public static méthode

public static nullAction ( int param1 ) : void
param1 int
Résultat void

sendRequest() public méthode

public sendRequest ( HttpRequest request ) : HttpResponse
request HttpRequest
Résultat HttpResponse

sendRequestAsync() public méthode

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
Résultat Thread

takeByte() public méthode

public takeByte ( byte buffer ) : byte[]
buffer byte
Résultat byte[]

Property Details

BUFFER_SIZE public_oe static_oe property

public static int BUFFER_SIZE
Résultat int

CHUNKED_TERMINATOR public_oe static_oe property

public static string CHUNKED_TERMINATOR
Résultat string

DL_CACHE_SIZE public_oe static_oe property

public static long DL_CACHE_SIZE
Résultat long

stream public_oe property

public Stream stream
Résultat Stream