C# Class P2PStateServer.HTTPPartialData

Represents a structure where partial HTTP data can accumulate as it is transmitted until transmission is complete.
The HTTPPartialData class holds HTTP data as it is transmitted. It verifies the transmitted data is valid HTTP and provides properties to signal the message was completely received or to signal an error.
显示文件 Open project: tenor/p2pStateServer Class Usage Examples

Public Methods

Method Description
Append ( byte Data ) : void

Reads passed in data and fills the partial data object with the read data

HTTPPartialData ( ServiceSocket HandlerSocket ) : System

Initializes a new instance of the HTTPPartialData class

Method Details

Append() public method

Reads passed in data and fills the partial data object with the read data
public Append ( byte Data ) : void
Data byte Data to read, in bytes
return void

HTTPPartialData() public method

Initializes a new instance of the HTTPPartialData class
public HTTPPartialData ( ServiceSocket HandlerSocket ) : System
HandlerSocket ServiceSocket The associated socket
return System