Comments (15)
😱
On Mon, 21 Nov 2016 at 9:55 AM, hsxin [email protected] wrote:
新版的酷Q udp客户端好像没法接受消息,能否改成tcp?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#12, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwYdfvov9tEdLvK2-8hNMxymCMhb0ks5rAPougaJpZM4K3vNm
.
from cqsocketapi.
我用的是java写的客户端,使用UDP调用的接受,发消息没得问题,就是没法接受到消息
from cqsocketapi.
void APIClient::send(const char *buffer, const int len)
{
time_t timeout = time(0) - CLIENT_TIMEOUT;
char log[1024];
for (int i = 0; i < CLIENT_SIZE; i++) {
if (clients[i].hello < 0) {
continue;
}
if (clients[i].hello < timeout) {
clients[i].hello = -1;
sprintf_s(log, "Client removed: %d.", clients[i].port);
CQ_addLog(appAuthCode, CQLOG_INFO, "APIClient", log);
continue;
}
sendto(sock, buffer, len, 0, (sockaddr *)&clients[i].info, sizeof(clients[i].info));
}
}
😱 如果可以的话 复写一个tcp,一个写文件的,一个http回调的接口 。
from cqsocketapi.
tcp server 比 udp server 难写多了😞
On Mon, 21 Nov 2016 at 10:22 AM, Dazzy Ding [email protected] wrote:
你发 clienthello 了吗👀
On Mon, 21 Nov 2016 at 10:16 AM, hsxin [email protected] wrote:
我用的是java写的客户端,使用UDP调用的接受,发消息没得问题,就是没法接受到消息
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwYi-USmo99sfb8GALiRKiuuWkKWgks5rAP8MgaJpZM4K3vNm
.
from cqsocketapi.
你发 clienthello 了吗👀
On Mon, 21 Nov 2016 at 10:16 AM, hsxin [email protected] wrote:
我用的是java写的客户端,使用UDP调用的接受,发消息没得问题,就是没法接受到消息
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwYi-USmo99sfb8GALiRKiuuWkKWgks5rAP8MgaJpZM4K3vNm
.
from cqsocketapi.
不对呀、我检查了一下我的 python 实现是正常的。
你确认一下你的实现有没有问题👀
On Mon, 21 Nov 2016 at 10:22 AM, Dazzy Ding [email protected] wrote:
tcp server 比 udp server 难写多了😞
On Mon, 21 Nov 2016 at 10:22 AM, Dazzy Ding [email protected] wrote:
你发 clienthello 了吗👀
On Mon, 21 Nov 2016 at 10:16 AM, hsxin [email protected] wrote:
我用的是java写的客户端,使用UDP调用的接受,发消息没得问题,就是没法接受到消息
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwYi-USmo99sfb8GALiRKiuuWkKWgks5rAP8MgaJpZM4K3vNm
.
from cqsocketapi.
我的实现貌似没得问题,发消息正常 ,正在研究你的python robot.
from cqsocketapi.
from cqsocketapi.
有 add 消息就会正常发送了的👀
On Mon, 21 Nov 2016 at 11:20 AM, hsxin [email protected] wrote:
[image: image]
https://cloud.githubusercontent.com/assets/3447075/20469652/709cad9e-afdc-11e6-8d0e-e395a6c58a20.png—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwVNCBmpvOE9EVyEmWKeG6ZuQTO_Jks5rAQ3-gaJpZM4K3vNm
.
from cqsocketapi.
from cqsocketapi.
发送不会有 log 的呀… 不然 log 会炸的
On Mon, 21 Nov 2016 at 11:24 AM, hsxin [email protected] wrote:
[image: image]
https://cloud.githubusercontent.com/assets/3447075/20469729/0ae0c214-afdd-11e6-9442-48ddc1086254.png
没看到发送消息—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwddHyjei6eEGV4fo7QFXo_O4U1awks5rAQ74gaJpZM4K3vNm
.
from cqsocketapi.
😞总之我这边没有问题…
你的问题是 酷q发出到java应用这段路走不通
On Mon, 21 Nov 2016 at 11:25 AM, Dazzy Ding [email protected] wrote:
发送不会有 log 的呀… 不然 log 会炸的
On Mon, 21 Nov 2016 at 11:24 AM, hsxin [email protected] wrote:
[image: image]
https://cloud.githubusercontent.com/assets/3447075/20469729/0ae0c214-afdd-11e6-9442-48ddc1086254.png
没看到发送消息—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADLuwddHyjei6eEGV4fo7QFXo_O4U1awks5rAQ74gaJpZM4K3vNm
.
from cqsocketapi.
from cqsocketapi.
估计是udp不行哈
from cqsocketapi.
😔我这边正常就是了。我看不到你的应用也没法猜出问题在哪。
from cqsocketapi.
Related Issues (13)
- 第一次使用CoolQ,能否写一个readme,方便快速上手 HOT 1
- 建议加入群操作,端口自定义与收到ClientHello后反向发送一次的功能 HOT 14
- 只能接受本地请求,改成 0.0.0.0 更好 HOT 3
- client 收不到消息 HOT 1
- 存在消息无法解码的问题 HOT 5
- 讨论组消息问题 HOT 12
- 不知道是插件问题还是酷q本身的问题 HOT 2
- QQ uses GB18030, not GBK HOT 2
- 如何判断Socket API已经部署完成并可用? HOT 4
- 有关新api HOT 1
- 关于在wine中使用本插件的奇怪问题 HOT 9
- 请问这个插件对酷q本身所有功能的适配性如何? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cqsocketapi.