Go网络编程库

huangapple go评论110阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2009年11月11日 23:33:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/1715966.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定