zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
650 stars 62 forks source link

Is it library only? Possible to get source code? #15

Closed lichangche closed 4 years ago

lichangche commented 4 years ago

Dear contributors,

Not sure if it installation problem or the enet source code is a secrete in this new implementation?

I tried to install but get the following warning - and I cannot find the source code.

/home/xxx/workspace/enet/build └── enet.c@2.1.3

npm WARN enoent ENOENT: no such file or directory, open '/home/uta/workspace/enet/build/package.json' npm WARN build No description npm WARN build No repository field. npm WARN build No README data npm WARN build No license field.

Does this look expected? Is the reo library only? Is it possible to share the source code?

Thanks, Carl

inlife commented 4 years ago

Hello Carl,

Sure thing, just download this file, and add it to your project: https://github.com/zpl-c/enet/blob/master/include/enet.h

And in one of your source code files (.c/.cpp file) do #define ENET_IMPLEMENTATION before including enet.h

That's it! :) Cheers!