Метод | Описание | |
---|---|---|
BeginRead ( AsyncCallback callback, object state ) : IAsyncResult |
Begins a native message asynchronous read from the input stream.
|
|
BeginWrite ( string message, AsyncCallback callback, object state ) : IAsyncResult |
Begins a native message asynchronous write to the output stream.
|
|
EndRead ( IAsyncResult asyncResult ) : string |
Ends the native message asynchronous read started by BeginRead method. The EndRead method must be called for each asynchronous operation started by BeginRead method. If any exception was thrown during asynchronous read, it is re-thrown in this method. |
|
EndWrite ( IAsyncResult asyncResult ) : void |
Ends the native message asynchronous write started by BeginWrite method. The EndWrite method must be called for each asynchronous operation started by BeginWrite method. If any exception was thrown during asynchronous write, it is re-thrown in this method. |
|
Port ( ) : System |
Creates a new native messaging port for stdandard input and output streams.
|
|
Port ( Stream istream, Stream ostream ) : System |
Creates a new native messaging port for given input and output streams.
|
|
Read ( ) : string |
Reads a native message from input stream synchronously. This method actually starts an asynchronous operation an the waits until it is finished. |
|
Write ( string message ) : void |
Writes the native message to output stream synchronously. This method actually starts an asynchronous operation an the waits until it is finished. |
Метод | Описание | |
---|---|---|
ReadLengthCallback ( |
Ends the asynchronous read of a native message length started by BeginRead method. Then begins an asynchronous read of a native message content. Any exception thrown in the method is saved and then is re-thrown in EndRead method. |
|
ReadMessageCallback ( |
Ends the asynchronous read of a native message content started by ReadLengthCallback method. Then calls the callback specified for the operation. Any exception thrown in the method is saved and then is re-thrown in EndRead method. |
|
WriteLengthCallback ( |
Ends the asynchronous write of a native message length started by BeginWrite method. Then begins an asynchronous write of a native message content. Any exception thrown in the method is saved and then is re-thrown in EndWrite method. |
|
WriteMessageCallback ( |
Ends the asynchronous write of a native message content started by WriteLengthCallback method. Then calls the callback specified for the operation. Any exception thrown in the method is saved and then is re-thrown in EndRead method. |
public BeginRead ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | An AsyncCallback delegate that is executed when a native message is read or an error has occured. |
state | object | An user-defined object that is passed to the callback inside its IAsyncResult parameter. |
Результат | IAsyncResult |
public BeginWrite ( string message, AsyncCallback callback, object state ) : IAsyncResult | ||
message | string | A native message that is to be written. |
callback | AsyncCallback | An AsyncCallback delegate that is executed when a native message is written or an error has occured. |
state | object | An user-defined object that is passed to the callback inside its IAsyncResult parameter. |
Результат | IAsyncResult |
public EndRead ( IAsyncResult asyncResult ) : string | ||
asyncResult | IAsyncResult | The IAsyncResult object that represents the asynchronous operation started by BeginRead method. |
Результат | string |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | The IAsyncResult object that represents the asynchronous operation started by BeginWrite method. |
Результат | void |
public Port ( Stream istream, Stream ostream ) : System | ||
istream | Stream | The input stream. |
ostream | Stream | The output stream. |
Результат | System |
public Write ( string message ) : void | ||
message | string | The native message that is to be written to the output stream. |
Результат | void |