renet 0.1.12-universal-darwin → 0.1.13-universal-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/renet/extconf.rb +1 -1
 - data/ext/renet/renet.c +1 -1
 - data/ext/renet/renet.h +1 -1
 - metadata +2 -20
 - data/ext/renet/callbacks.c +0 -47
 - data/ext/renet/callbacks.h +0 -27
 - data/ext/renet/compress.c +0 -654
 - data/ext/renet/enet.h +0 -540
 - data/ext/renet/host.c +0 -479
 - data/ext/renet/list.c +0 -75
 - data/ext/renet/list.h +0 -43
 - data/ext/renet/packet.c +0 -157
 - data/ext/renet/peer.c +0 -816
 - data/ext/renet/protocol.c +0 -1671
 - data/ext/renet/protocol.h +0 -196
 - data/ext/renet/time.h +0 -18
 - data/ext/renet/types.h +0 -13
 - data/ext/renet/unix.c +0 -446
 - data/ext/renet/unix.h +0 -45
 - data/ext/renet/utility.h +0 -12
 - data/ext/renet/win32.c +0 -348
 - data/ext/renet/win32.h +0 -58
 
    
        data/ext/renet/extconf.rb
    CHANGED
    
    
    
        data/ext/renet/renet.c
    CHANGED
    
    | 
         @@ -30,7 +30,7 @@ void Init_renet() 
     | 
|
| 
       30 
30 
     | 
    
         
             
              init_renet_connection();
         
     | 
| 
       31 
31 
     | 
    
         
             
              init_renet_server();
         
     | 
| 
       32 
32 
     | 
    
         
             
              rb_define_const(mENet, "ENET_VERSION", rb_str_new2("1.3.0"));
         
     | 
| 
       33 
     | 
    
         
            -
              rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1. 
     | 
| 
      
 33 
     | 
    
         
            +
              rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.13"));
         
     | 
| 
       34 
34 
     | 
    
         
             
            }
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
            VALUE renet_main_initialize(VALUE self)
         
     | 
    
        data/ext/renet/renet.h
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: renet
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.13
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: universal-darwin
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2011- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2011-08-25 00:00:00.000000000Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       14 
14 
     | 
    
         
             
            description: Ruby library for games networking. Uses ENet as backend
         
     | 
| 
       15 
15 
     | 
    
         
             
            email: dark.wolf.warrior@gmail.com
         
     | 
| 
         @@ -22,30 +22,12 @@ files: 
     | 
|
| 
       22 
22 
     | 
    
         
             
            - lib/renet.rb
         
     | 
| 
       23 
23 
     | 
    
         
             
            - examples/Console-Server.rb
         
     | 
| 
       24 
24 
     | 
    
         
             
            - examples/Gosu-Client.rb
         
     | 
| 
       25 
     | 
    
         
            -
            - ext/renet/callbacks.h
         
     | 
| 
       26 
     | 
    
         
            -
            - ext/renet/enet.h
         
     | 
| 
       27 
     | 
    
         
            -
            - ext/renet/list.h
         
     | 
| 
       28 
     | 
    
         
            -
            - ext/renet/protocol.h
         
     | 
| 
       29 
25 
     | 
    
         
             
            - ext/renet/renet.h
         
     | 
| 
       30 
26 
     | 
    
         
             
            - ext/renet/renet_connection.h
         
     | 
| 
       31 
27 
     | 
    
         
             
            - ext/renet/renet_server.h
         
     | 
| 
       32 
     | 
    
         
            -
            - ext/renet/time.h
         
     | 
| 
       33 
     | 
    
         
            -
            - ext/renet/types.h
         
     | 
| 
       34 
     | 
    
         
            -
            - ext/renet/unix.h
         
     | 
| 
       35 
     | 
    
         
            -
            - ext/renet/utility.h
         
     | 
| 
       36 
     | 
    
         
            -
            - ext/renet/win32.h
         
     | 
| 
       37 
     | 
    
         
            -
            - ext/renet/callbacks.c
         
     | 
| 
       38 
     | 
    
         
            -
            - ext/renet/compress.c
         
     | 
| 
       39 
     | 
    
         
            -
            - ext/renet/host.c
         
     | 
| 
       40 
     | 
    
         
            -
            - ext/renet/list.c
         
     | 
| 
       41 
     | 
    
         
            -
            - ext/renet/packet.c
         
     | 
| 
       42 
     | 
    
         
            -
            - ext/renet/peer.c
         
     | 
| 
       43 
     | 
    
         
            -
            - ext/renet/protocol.c
         
     | 
| 
       44 
28 
     | 
    
         
             
            - ext/renet/renet.c
         
     | 
| 
       45 
29 
     | 
    
         
             
            - ext/renet/renet_connection.c
         
     | 
| 
       46 
30 
     | 
    
         
             
            - ext/renet/renet_server.c
         
     | 
| 
       47 
     | 
    
         
            -
            - ext/renet/unix.c
         
     | 
| 
       48 
     | 
    
         
            -
            - ext/renet/win32.c
         
     | 
| 
       49 
31 
     | 
    
         
             
            - ext/renet/extconf.rb
         
     | 
| 
       50 
32 
     | 
    
         
             
            homepage: https://github.com/Dahrkael/rENet
         
     | 
| 
       51 
33 
     | 
    
         
             
            licenses: []
         
     | 
    
        data/ext/renet/callbacks.c
    DELETED
    
    | 
         @@ -1,47 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            /** 
         
     | 
| 
       2 
     | 
    
         
            -
             @file callbacks.c
         
     | 
| 
       3 
     | 
    
         
            -
             @brief ENet callback functions
         
     | 
| 
       4 
     | 
    
         
            -
            */
         
     | 
| 
       5 
     | 
    
         
            -
            #define ENET_BUILDING_LIB 1
         
     | 
| 
       6 
     | 
    
         
            -
            #include "enet.h"
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            static ENetCallbacks callbacks = { malloc, free, abort };
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            int
         
     | 
| 
       11 
     | 
    
         
            -
            enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits)
         
     | 
| 
       12 
     | 
    
         
            -
            {
         
     | 
| 
       13 
     | 
    
         
            -
               if (version < ENET_VERSION_CREATE (1, 3, 0))
         
     | 
| 
       14 
     | 
    
         
            -
                 return -1;
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
               if (inits -> malloc != NULL || inits -> free != NULL)
         
     | 
| 
       17 
     | 
    
         
            -
               {
         
     | 
| 
       18 
     | 
    
         
            -
                  if (inits -> malloc == NULL || inits -> free == NULL)
         
     | 
| 
       19 
     | 
    
         
            -
                    return -1;
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
                  callbacks.malloc = inits -> malloc;
         
     | 
| 
       22 
     | 
    
         
            -
                  callbacks.free = inits -> free;
         
     | 
| 
       23 
     | 
    
         
            -
               }
         
     | 
| 
       24 
     | 
    
         
            -
                  
         
     | 
| 
       25 
     | 
    
         
            -
               if (inits -> no_memory != NULL)
         
     | 
| 
       26 
     | 
    
         
            -
                 callbacks.no_memory = inits -> no_memory;
         
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
               return enet_initialize ();
         
     | 
| 
       29 
     | 
    
         
            -
            }
         
     | 
| 
       30 
     | 
    
         
            -
                       
         
     | 
| 
       31 
     | 
    
         
            -
            void *
         
     | 
| 
       32 
     | 
    
         
            -
            enet_malloc (size_t size)
         
     | 
| 
       33 
     | 
    
         
            -
            {
         
     | 
| 
       34 
     | 
    
         
            -
               void * memory = callbacks.malloc (size);
         
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
               if (memory == NULL)
         
     | 
| 
       37 
     | 
    
         
            -
                 callbacks.no_memory ();
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
               return memory;
         
     | 
| 
       40 
     | 
    
         
            -
            }
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
            void
         
     | 
| 
       43 
     | 
    
         
            -
            enet_free (void * memory)
         
     | 
| 
       44 
     | 
    
         
            -
            {
         
     | 
| 
       45 
     | 
    
         
            -
               callbacks.free (memory);
         
     | 
| 
       46 
     | 
    
         
            -
            }
         
     | 
| 
       47 
     | 
    
         
            -
             
     | 
    
        data/ext/renet/callbacks.h
    DELETED
    
    | 
         @@ -1,27 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            /** 
         
     | 
| 
       2 
     | 
    
         
            -
             @file  callbacks.h
         
     | 
| 
       3 
     | 
    
         
            -
             @brief ENet callbacks
         
     | 
| 
       4 
     | 
    
         
            -
            */
         
     | 
| 
       5 
     | 
    
         
            -
            #ifndef __ENET_CALLBACKS_H__
         
     | 
| 
       6 
     | 
    
         
            -
            #define __ENET_CALLBACKS_H__
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            #include <stdlib.h>
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            typedef struct _ENetCallbacks
         
     | 
| 
       11 
     | 
    
         
            -
            {
         
     | 
| 
       12 
     | 
    
         
            -
                void * (ENET_CALLBACK * malloc) (size_t size);
         
     | 
| 
       13 
     | 
    
         
            -
                void (ENET_CALLBACK * free) (void * memory);
         
     | 
| 
       14 
     | 
    
         
            -
                void (ENET_CALLBACK * no_memory) (void);
         
     | 
| 
       15 
     | 
    
         
            -
            } ENetCallbacks;
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
            /** @defgroup callbacks ENet internal callbacks
         
     | 
| 
       18 
     | 
    
         
            -
                @{
         
     | 
| 
       19 
     | 
    
         
            -
                @ingroup private
         
     | 
| 
       20 
     | 
    
         
            -
            */
         
     | 
| 
       21 
     | 
    
         
            -
            extern void * enet_malloc (size_t);
         
     | 
| 
       22 
     | 
    
         
            -
            extern void   enet_free (void *);
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
            /** @} */
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            #endif /* __ENET_CALLBACKS_H__ */
         
     | 
| 
       27 
     | 
    
         
            -
             
     |