英文:
Go network programming libs
问题
我决定将大部分分布式服务器程序改用Go语言重写,以取代现有的基于C#的程序。
有人可以指导我使用Go的TCP库或Go的通用网络编程库吗?
谢谢
Edi: ... 这段代码如何在Visual Studio 2008中编译?谢谢
英文:
I've decided to rewrite most of my distributed server programs in Go to replace the existing c# based ones.
Can someone point me to a Go TCP libs or a Go general network programming lib.
Thanks
Edi: ... and how do i complile this code is visual stuido 2008? Thanks
答案1
得分: 2
这是net包的官方API文档。
关于如何编译:请参阅安装指南。目前似乎没有明显的方法在VS中进行编译:
> Go工具链是用C编写的。要构建它,您需要安装GCC、标准C库、解析器生成器Bison和文本编辑器ed。
因此,为了在Windows上进行开发,最简单的方法是使用cygwin。
英文:
Here's the official API docs for the net package.
Regarding how to compile: See the installation guide. As of yet there doesn't seem to be an obvious way to compile in VS:
> The Go tool chain is written in C. To
> build it, you need to have GCC, the
> standard C libraries, the parser
> generator Bison, and the text editor
> ed installed.
So in order to develop on Windows, the easiest route would be to use cygwin.
答案2
得分: 0
根据您的分布式软件需求,您可能还想查看rpc包,它使得注册对象的公共方法并远程调用它们变得非常容易。
英文:
Depending on the needs of your distributed software, you may also want to check out the rpc package which makes it quite easy to register an object's public methods and call them remotely.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论