示例#1
0
文件: enet.go 项目: deft-code/go-enet
func Initialize() error {
	if C.enet_initialize() != C.int(0) {
		return errors.New("ENet failed to initialize")
	}
	return nil
}
示例#2
0
文件: goenet.go 项目: boj/goenet
func Initialize() int32 {
	return int32(C.enet_initialize())
}