C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Public Member Functions | Friends | List of all members
web::websockets::client::websocket_outgoing_message Class Reference

Represents an outgoing websocket message More...

#include <ws_msg.h>

Public Member Functions

void set_utf8_message (std::string &&data)
 Sets a UTF-8 message as the message body. More...
 
void set_utf8_message (const std::string &data)
 Sets a UTF-8 message as the message body. More...
 
void set_utf8_message (const concurrency::streams::istream &istream)
 Sets a UTF-8 message as the message body. More...
 
void set_utf8_message (const concurrency::streams::istream &istream, size_t len)
 Sets a UTF-8 message as the message body. More...
 
void set_binary_message (const concurrency::streams::istream &istream, size_t len)
 Sets binary data as the message body. More...
 
void set_binary_message (const concurrency::streams::istream &istream)
 Sets binary data as the message body. More...
 

Friends

class details::winrt_callback_client
 
class details::wspp_callback_client
 

Detailed Description

Represents an outgoing websocket message

Member Function Documentation

void web::websockets::client::websocket_outgoing_message::set_binary_message ( const concurrency::streams::istream &  istream,
size_t  len 
)
inline

Sets binary data as the message body.

Parameters
istreamcasablanca input stream representing the body of the message.
lennumber of bytes to send.
void web::websockets::client::websocket_outgoing_message::set_binary_message ( const concurrency::streams::istream &  istream)
inline

Sets binary data as the message body.

Parameters
istreamInput stream representing the body of the message.

Upon sending, the entire stream may be buffered to determine the length.

void web::websockets::client::websocket_outgoing_message::set_utf8_message ( std::string &&  data)
inline

Sets a UTF-8 message as the message body.

Parameters
dataUTF-8 String containing body of the message.
void web::websockets::client::websocket_outgoing_message::set_utf8_message ( const std::string &  data)
inline

Sets a UTF-8 message as the message body.

Parameters
dataUTF-8 String containing body of the message.
void web::websockets::client::websocket_outgoing_message::set_utf8_message ( const concurrency::streams::istream &  istream)
inline

Sets a UTF-8 message as the message body.

Parameters
istreamcasablanca input stream representing the body of the message.

Upon sending, the entire stream may be buffered to determine the length.

void web::websockets::client::websocket_outgoing_message::set_utf8_message ( const concurrency::streams::istream &  istream,
size_t  len 
)
inline

Sets a UTF-8 message as the message body.

Parameters
istreamcasablanca input stream representing the body of the message.
lennumber of bytes to send.

The documentation for this class was generated from the following file: