C# Class wyDay.Controls.PipeClient

Allow pipe communication between a server and a client.
Inheritance: IDisposable
Afficher le fichier Open project: RagingBigFemaleBird/sgs Class Usage Examples

Méthodes publiques

Méthode Description
Connect ( string pipename ) : void

Connects to the server with a pipename.

Disconnect ( ) : void

Disconnects from the server.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SendMessage ( byte message ) : bool

Sends a message to the server.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
CreateFile ( string pipeName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplate ) : SafeFileHandle
Read ( ) : void

Method Details

Connect() public méthode

Connects to the server with a pipename.
public Connect ( string pipename ) : void
pipename string The name of the pipe to connect to.
Résultat void

Disconnect() public méthode

Disconnects from the server.
public Disconnect ( ) : void
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Result: true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

SendMessage() public méthode

Sends a message to the server.
public SendMessage ( byte message ) : bool
message byte The message to send.
Résultat bool