简体   繁体   English

UDP客户端的Windows C套接字编程

[英]Windows C socket programming for UDP client

I am trying to lookup some example programs for windows socket. 我正在尝试查找Windows套接字的一些示例程序。 Particularly, I am interested in writing a client in C (in visual studio) which communicates to the server using UDP. 特别是,我对用C语言编写一个客户端(在Visual Studio中)感兴趣,该客户端使用UDP与服务器通信。 I din't find any concrete material. 我找不到任何具体材料。 I tried some examples but got some linking errors. 我尝试了一些示例,但遇到了一些链接错误。 Is there any library available. 有没有可用的图书馆。 Please let me know. 请告诉我。 Thanks in advance. 提前致谢。

Apache Portable Runtime支持套接字,它是跨平台的。

I've found a simple library, which provides implementation of networking, but it is for C++. 我找到了一个简单的库,该库提供了网络的实现,但是它是针对C ++的。 ( C++ Socket Class for Windows ). 适用于Windows的C ++套接字类 )。 You can look at it's implementation of working with sockets, or just use it (there are examples of simple client and server). 您可以查看它与套接字一起使用的实现,也可以仅使用它(有一些简单的客户端和服务器示例)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM