GithubHelp home page GithubHelp logo

gdnet's People

Contributors

empyreanx avatar kermer avatar thimenesup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gdnet's Issues

Fatal error: error writing to -: Broken pipe

I'm getting this error when trying to compile in godot 3:

Assembler messages:
Fatal error: can't create modules/gdnet/enet/packet.x11.tools.64.o: Permission denied
modules/gdnet/enet/packet.cpp:163:1: fatal error: error writing to -: Broken pipe
 }
 ^
compilation terminated.
scons: *** [modules/gdnet/enet/packet.x11.tools.64.o] Error 1
scons: building terminated because of errors.

Translating module to Godot 3

I am translating your module to Godot 3, so far I have been able to repair all the errors, however in this below I am not understanding how to fix. You who have more experience, could you help me?

[ 19%] Compiling ==> modules/gdnet/gdnet_event.cpp
In file included from core/method_bind.h:375:0,
                 from core/class_db.h:33,
                 from core/reference.h:33,
                 from modules/gdnet/gdnet_event.h:6,
                 from modules/gdnet/gdnet_event.cpp:3:
core/method_bind.gen.inc: In instantiation of 'void MethodBind0R<R>::ptrcall(Object*, const void**, void*) [with R = PoolVector<unsigned char>&]':
modules/gdnet/gdnet_event.cpp:34:1:   required from here
core/method_bind.gen.inc:229:22: error: 'encode' is not a member of 'PtrToArg<PoolVector<unsigned char>&>'
   PtrToArg<R>::encode(  (instance->*method)() ,r_ret)  ;
   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/method_bind.gen.inc: In instantiation of 'void MethodBind0R<R>::ptrcall(Object*, const void**, void*) [with R = GDNetEvent::Type]':
modules/gdnet/gdnet_event.cpp:34:1:   required from here
core/method_bind.gen.inc:229:22: error: 'encode' is not a member of 'PtrToArg<GDNetEvent::Type>'
scons: *** [modules/gdnet/gdnet_event.x11.tools.64.o] Error 1
scons: building terminated because of errors.

gdnet for Godot 3.0:
gdnet-godot-3.0.zip

Godot build fails

Stacktrace:

modules/gdnet/gdnet_address.h:11:2: error: C++ requires a type specifier for all
      declarations
        OBJ_TYPE(GDNetAddress,Reference);
        ^
modules/gdnet/gdnet_address.cpp:6:2: error: use of undeclared identifier
      'ObjectTypeDB'; did you mean 'ObjectDB'?
        ObjectTypeDB::bind_method("set_host",&GDNetAddress::set_host);
        ^~~~~~~~~~~~
        ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
      ^
modules/gdnet/gdnet_address.cpp:6:16: error: no member named 'bind_method' in
      'ObjectDB'
        ObjectTypeDB::bind_method("set_host",&GDNetAddress::set_host);
        ~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:7:2: error: use of undeclared identifier
      'ObjectTypeDB'; did you mean 'ObjectDB'?
        ObjectTypeDB::bind_method("get_host",&GDNetAddress::get_host);
        ^~~~~~~~~~~~
        ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
      ^
modules/gdnet/gdnet_address.cpp:7:16: error: no member named 'bind_method' in
      'ObjectDB'
        ObjectTypeDB::bind_method("get_host",&GDNetAddress::get_host);
        ~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:9:2: error: use of undeclared identifier
      'ObjectTypeDB'; did you mean 'ObjectDB'?
        ObjectTypeDB::bind_method("set_port",&GDNetAddress::set_port);
        ^~~~~~~~~~~~
        ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
      ^
modules/gdnet/gdnet_address.cpp:9:16: error: no member named 'bind_method' in
      'ObjectDB'
        ObjectTypeDB::bind_method("set_port",&GDNetAddress::set_port);
        ~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:10:2: error: use of undeclared identifier
      'ObjectTypeDB'; did you mean 'ObjectDB'?
        ObjectTypeDB::bind_method("get_port",&GDNetAddress::get_port);
        ^~~~~~~~~~~~
        ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
      ^
modules/gdnet/gdnet_address.cpp:10:16: error: no member named 'bind_method' in
      'ObjectDB'
        ObjectTypeDB::bind_method("get_port",&GDNetAddress::get_port);
        ~~~~~~~~~~~~~~^
9 errors generated.
scons: *** [modules/gdnet/gdnet_address.osx.tools.64.o] Error 1
scons: building terminated because of errors.

Errors when compiling gdnet with godot 3.3.3

When I try to compile gdnet in godot 3.3.3 I get following errors:

modules\gdnet3\register_types.cpp(22): error C3861: 'ERR_EXPLAIN': identifier not found
modules\gdnet3\gdnet_host.cpp(18): error C2039: 'create': is not a member of 'MutexImpl<std::recursive_mutex>'
C:\Godot\godot3.3.3\core/os/mutex.h(70): note: see declaration of 'MutexImpl<std::recursive_mutex>'
modules\gdnet3\gdnet_host.cpp(18): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(19): error C2039: 'create': is not a member of 'MutexImpl<std::recursive_mutex>'
C:\Godot\godot3.3.3\core/os/mutex.h(70): note: see declaration of 'MutexImpl<std::recursive_mutex>'
scons: *** [modules\gdnet3\register_types.windows.opt.tools.64.obj] Error 2
modules\gdnet3\gdnet_host.cpp(19): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(20): error C2039: 'create': is not a member of 'Thread'
C:\Godot\godot3.3.3\core/os/thread.h(43): note: see declaration of 'Thread'
modules\gdnet3\gdnet_host.cpp(20): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(26): error C2660: 'Thread::wait_to_finish': function does not take 1 arguments
C:\Godot\godot3.3.3\core/os/thread.h(98): note: see declaration of 'Thread::wait_to_finish'
modules\gdnet3\gdnet_host.cpp(183): error C3861: 'ERR_EXPLAIN': identifier not found
modules\gdnet3\gdnet_host.cpp(218): error C3861: 'ERR_EXPLAIN': identifier not found

Freeze when using some functions

So far I find out that using ping or disconnect will freeze your process.
In case of ping it's kind of understandable, but why when using disconnect?

I suppose it will be required to use Threads in both options.

Also timeout time seem to be waaaay to high for the games. It usually takes over 10 seconds till the game realise that server/client disconnected (looking at enet.h it looks like timeout takes 5-30sec).

I think adding function for setting timeout time would be nice.

Current Status

Hello, i'm a developper in the Godot team and was assigned to research Network API. I just realized this module exists, can you tell me about the current status of this module?

(win7) Linking ws2_32

Using MinGW it works fine.
Using VisualStudio it can't find it.

In enet\SCSub
MinGW requires env.Append(LIBS=['ws2_32'])
VisualStudio requires env.Append(LINKFLAGS=["ws2_32.lib"]) instead of it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.