Stream session instance view.
More...
#include <stream-server.hpp>
Stream session instance view.
See the stream-server.h
◆ StreamSessionView()
Creates a new stream stream session handle.
- Parameters
-
| [in] | instance | target stream session instance |
◆ getSocket()
◆ getRemoteAddress()
◆ getHandle()
| void * getHandle |
( |
| ) |
const |
|
inlinenoexcept |
Returns stream session handle.
- Warning
- Handle may be null if socket is not fully connected!
See the createStreamServer().
◆ send() [1/2]
| NetsResult send |
( |
const void * | data, |
|
|
size_t | byteCount ) |
|
inlinenoexcept |
Sends stream data to the specified session. (TCP).
See the streamSessionSend().
- Warning
- You should lock sessions before sending messages!
- Returns
- The operation NetsResult code.
- Parameters
-
| [in] | data | send data buffer |
| byteCount | data byte count to send |
◆ send() [2/2]
Sends stream message to the specified session. (TCP).
See the streamSessionSend().
- Warning
- You should lock sessions before sending messages!
- Returns
- The operation NetsResult code.
- Parameters
-
| [in] | message | stream message to send |
◆ alive()
Resets stream session timeout time.
See the aliveStreamSession().
- Warning
- You should lock sessions before aliving!
◆ shutdown()
Shutdowns part of the full-duplex socket connection.
See the shutdownStreamSession().
- Warning
- You should lock sessions before shutting down!
- Returns
- The operation NetsResult code.
- Parameters
-
| shutdown | socket connection shutdown mode |