socket.io 的 C 客户端 [英] C client for socket.io

查看:57
本文介绍了socket.io 的 C 客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 socket.io 建立从 C 程序到节点服务器的连接.

I am trying to establish a connection from a program in C to a node server with socket.io.

我能想到的唯一方法是从 C 程序向节点服务器发出 http 请求,所以我对部分内容有所了解.

The only way I could figure out was to make http request from the C program to the node server so I have dis part a little covered.

现在我需要从 C 程序的节点服务器接收一些信息.

Now I need to receive some information from the node server from the C program.

是否有任何 c 客户端库可以让我这样做?如果它不存在,你能给我一些想法来让它工作吗?

Is there any client library for c that lets me do this? In case it does not exist, could you gime me some ideas to make it work?

非常感谢!

推荐答案

New C++ Client

New C++ Client

基于 Boost 和 WebSocket++,这个功能齐全的 Socket.IO 1.0 客户端具有在多个平台上工作的基本优势.

Based on Boost and WebSocket++, this full-featured Socket.IO 1.0 client has the fundamental advantage of working on multiple platforms.

http://socket.io/blog/socket-io-cpp/

这篇关于socket.io 的 C 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆