您当前的位置: 首页 >  ar

鱼儿-1226

暂无认证

  • 0浏览

    0关注

    1100博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C++ websocket client/server library

鱼儿-1226 发布时间:2021-11-10 13:42:08 ,浏览量:0

Chapter 1: Initial Setup & Basics

Setting up the basic types, opening and closing connections, sending and receiving messages.

Step 1

A basic program loop that prompts the user for a command and then processes it. In this tutorial we will modify this program to perform tasks and retrieve data from a remote server over a WebSocket connection.

Build

clang++ step1.cpp

Code so far

note A code snapshot for each step is present next to this tutorial file in the git repository.

#include

#include

int main() {

bool done = false;

std::string input;

while (!done) {

std::cout

Remote Server: WebSocket++/0.4.0

> Error/close reason: N/A

> Messages Processed: (2)

>> example message

关注
打赏
1604459285
查看更多评论
立即登录/注册

微信扫码登录

0.0652s