如何在win32 api c ++中使用sfml套接字 [英] how to use sfml socket in win32 api c++

查看:74
本文介绍了如何在win32 api c ++中使用sfml套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

任何人都可以告诉我如何在win32类型的应用程序中使用sfml套接字,实际上我可以自己做,但问题是当我调用accept()函数程序时获取坚持到有人连接到它,哪些东西真的难以理解,所以我想知道是否有人可以告诉我如何让它工作,我的意思是如果有一个像WSAAsyncSelect()函数的功能,这是用于Windows套接字,是否有任何类似的功能sfml socket也是。

提前感谢。

Hi everyone!
Can anybody tell me how to use sfml socket in win32 kind of application, actually i can do it myself but the problem is that when i call accept() function the program get stuck until someone connects to it, which something really unaccetable so i was wondering if somebody could tell me how to make it work, i mean if there is a function like WSAAsyncSelect() function which is for windows socket, is there any similar function for sfml socket too.
thanks in advance.

推荐答案

还有一个替代方案,有线程,我的朋友。
There is an alternative, there are threads, my friend.


这篇关于如何在win32 api c ++中使用sfml套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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