Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpomelo的UDP demo #7

Closed
allenlikeu opened this issue Apr 15, 2013 · 6 comments
Closed

libpomelo的UDP demo #7

allenlikeu opened this issue Apr 15, 2013 · 6 comments

Comments

@allenlikeu
Copy link

小弟菜鸟,请问能不能给一个用到udp的例子?

@changchang
Copy link
Contributor

现在的版本不支持udp

@allenlikeu
Copy link
Author

这位大牛,你太给力了,连续破灭了小弟的2个希望~~

@fantasyni
Copy link
Member

libpomelo 目前不提供 udp,但是你可以看看 libuv ,那里面是有的

@changchang
Copy link
Contributor

能提供一下使用场景的需求么?如果比较普遍的话可以考虑在后面提供udp的支持。:)

@allenlikeu
Copy link
Author

libuv看了下,具体使用的方式不是很明白,比如uv_udp_init第一个参数loop是什么。
小弟倒也没什么其他想法,就是在连接gate的时候,gate只返回下connector的host和port,然后这个连接就关闭了。这样的话,建立连接的开销远大于传输数据了,小弟就觉得能用udp的话,就比较好一点。

@fantasyni
Copy link
Member

udp 无法保证吧,而且这个只是在一开始建立连接的过程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants