nip2pEnableStream
int32_t nip2pEnableStream (nip2p_tStreamHandle streamHandle);
Purpose
Prepares the stream for data transmission. After this function runs, the stream can transmit data from the writer to the reader. You must enable the stream before you can transmit data. You also can set the enableStream parameter of the nip2pCreateAndLinkStream function to 1 to enable a stream without using the nip2pEnableStream function.
Parameters
Input |
Name |
Type |
Description |
streamHandle |
nip2p_tStreamHandle |
Specifies the stream to enable. |
Return Value
Name |
Type |
Description |
Error code |
int32_t |
Returns the error code for the session or execution thread.
Value |
Meaning |
0 |
No error. |
Positive Values |
Warning, but the operation succeeded. |
Negative Values |
An error occurred and the operation did not succeed. |
|