CF Networking cocoa 的简单服务器/客户端
我已经四处寻找类似的东西有一段时间了,但我找不到任何东西。 我只是想要一个非常非常基本的服务器/客户端的例子,在可可中使用 CF 网络......有很多东西,比如超级复杂的等等 - 必须有一个干净、简单的方法来设置服务器,让客户端像数字一样发送它,说“1”,然后返回收到的数字+1或类似这样的非常基本的东西,
我只是觉得向服务器发送一个数字并拥有服务器与另一个数字..
我有一些 c/c++/obj c 的经验,但我不太好。
谢谢!
I've been looking around for something like this for a while, but I can't find anything.
I just want an example of a really really basic server/client with CF networking in cocoa.... there's a lot of stuff out there thats like super convoluted etc - there's got to be a clean, simple way to just set up a server, have a client send it like a number, say "1", and then return the number recieved +1 or something really rudimentary like that
i just feel like it can't possibly be that hard to send a server a number and have the server relpy with another number..
i've got some experience with c/c++/obj c but i'm not too great.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该参考这个CFNetwork 编程指南。本书面向想要在应用程序中使用网络协议的开发人员。为了充分理解本书,您应该很好地理解网络编程概念,例如 BSD 套接字、流和 HTTP 协议。此外,您应该熟悉 Mac OS X 编程概念,包括运行循环。
you should refer this CFNetwork Programming Guide. This book is intended for developers who want to use network protocols in their applications. In order to fully understand this book, you should have a good understanding of network programming concepts such as BSD sockets, streams and HTTP protocols. Additionally, you should be familiar Mac OS X programming concepts including run loops.