Git Product home page Git Product logo

Comments (15)

yukixz avatar yukixz commented on July 27, 2024

😱

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.

hsxin avatar hsxin commented on July 27, 2024

我用的是java写的客户端,使用UDP调用的接受,发消息没得问题,就是没法接受到消息

from cqsocketapi.

hsxin avatar hsxin commented on July 27, 2024

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.

yukixz avatar yukixz commented on July 27, 2024

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.

yukixz avatar yukixz commented on July 27, 2024

你发 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.

yukixz avatar yukixz commented on July 27, 2024

不对呀、我检查了一下我的 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.

hsxin avatar hsxin commented on July 27, 2024

我的实现貌似没得问题,发消息正常 ,正在研究你的python robot.

from cqsocketapi.

hsxin avatar hsxin commented on July 27, 2024

image

from cqsocketapi.

yukixz avatar yukixz commented on July 27, 2024

有 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.

hsxin avatar hsxin commented on July 27, 2024

image
没看到发送消息

from cqsocketapi.

yukixz avatar yukixz commented on July 27, 2024

发送不会有 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.

yukixz avatar yukixz commented on July 27, 2024

😞总之我这边没有问题…
你的问题是 酷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.

hsxin avatar hsxin commented on July 27, 2024

image

from cqsocketapi.

hsxin avatar hsxin commented on July 27, 2024

估计是udp不行哈

from cqsocketapi.

yukixz avatar yukixz commented on July 27, 2024

😔我这边正常就是了。我看不到你的应用也没法猜出问题在哪。

from cqsocketapi.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.