C# Class Squishy.Network.DataConnection

The DataConnection provides several methods to send continuous data.
Inheritance: Connection
Datei anzeigen Open project: jaddie/WCell-Utility-Bot

Public Methods

Method Description
DataConnection ( ) : System
DataConnection ( Socket sock ) : System
SendAll ( Connection con ) : void
SendAll ( Stream stream ) : void

Flags this connection busy and asynchronously sends everything that can be read from this stream.

SendFile ( FileInfo file ) : void

Flags this connection busy and asynchronously sends the given file.

Method Details

DataConnection() public method

public DataConnection ( ) : System
return System

DataConnection() public method

public DataConnection ( Socket sock ) : System
sock Socket
return System

SendAll() public method

public SendAll ( Connection con ) : void
con Connection
return void

SendAll() public method

Flags this connection busy and asynchronously sends everything that can be read from this stream.
public SendAll ( Stream stream ) : void
stream Stream
return void

SendFile() public method

Flags this connection busy and asynchronously sends the given file.
public SendFile ( FileInfo file ) : void
file System.IO.FileInfo
return void