Example #1
0
func Initialize() error {
	if C.enet_initialize() != C.int(0) {
		return errors.New("ENet failed to initialize")
	}
	return nil
}
Example #2
0
File: goenet.go Project: boj/goenet
func Initialize() int32 {
	return int32(C.enet_initialize())
}