czmq-ffi-gen 0.5.0 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ddc4ee13a1ddc22fe67e85944c03518113c53bf
4
- data.tar.gz: 97c237e933b61b8777a028ec104ce2afc3703c17
3
+ metadata.gz: a3da0e81176fb0b1958a764932b2b3f5425aca69
4
+ data.tar.gz: 5321cfea3e669fedc76bdb678f69f96949af5883
5
5
  SHA512:
6
- metadata.gz: 5caa19323558d2a38336802bae75cb1ed64de047f288d20531079a77fdb555a642115e6e864329c4315b6def1bcde496f56ed153c608965de2c6c7c4ad9ee7bc
7
- data.tar.gz: d8dd4d88b96b568a0ddfbd0f47b7462b346bea823c003f0d402f0f134598ce57257cf4c1f3517803d2b0392a6a0830a99432a7330d62c7438b6fd403a58fb7f8
6
+ metadata.gz: 597331314771987231a1b4564d025d32b54fa92c88efed7b091f273c30d869adcec03a675d1fbc3436e2f3dee5b857e7d4f5f56f678394fd7f7ee85389d6da8b
7
+ data.tar.gz: 3106a49ea1589d01034dadcef47b44562ed58313249ffcd317df778f13a2877471a6d1e209812b5d896fd152f7d4c70e781e488b5daa71450c0da779fcbe72e8
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.6.0 (01/15/2016)
2
+ -----
3
+ * upgrade CZMQ low-level binding to
4
+ - add support for ZMTP 3.1 heartbeat options
5
+
1
6
  0.5.0 (01/14/2016)
2
7
  -----
3
8
  * add CZMQ::FFI::Errors
@@ -816,6 +816,156 @@ module CZMQ
816
816
  result
817
817
  end
818
818
 
819
+ # Get socket option `heartbeat_ivl`.
820
+ #
821
+ # @return [Integer]
822
+ def heartbeat_ivl()
823
+ raise DestroyedError unless @ptr
824
+ self_p = @ptr
825
+ result = ::CZMQ::FFI.zsock_heartbeat_ivl(self_p)
826
+ result
827
+ end
828
+
829
+ # Get socket option `heartbeat_ivl`.
830
+ #
831
+ # This is the polymorphic version of #heartbeat_ivl.
832
+ #
833
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
834
+ # object reference to use this method on
835
+ # @return [Integer]
836
+ def self.heartbeat_ivl(self_p)
837
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
838
+ result = ::CZMQ::FFI.zsock_heartbeat_ivl(self_p)
839
+ result
840
+ end
841
+
842
+ # Set socket option `heartbeat_ivl`.
843
+ #
844
+ # @param heartbeat_ivl [Integer, #to_int, #to_i]
845
+ # @return [void]
846
+ def set_heartbeat_ivl(heartbeat_ivl)
847
+ raise DestroyedError unless @ptr
848
+ self_p = @ptr
849
+ heartbeat_ivl = Integer(heartbeat_ivl)
850
+ result = ::CZMQ::FFI.zsock_set_heartbeat_ivl(self_p, heartbeat_ivl)
851
+ result
852
+ end
853
+
854
+ # Set socket option `heartbeat_ivl`.
855
+ #
856
+ # This is the polymorphic version of #set_heartbeat_ivl.
857
+ #
858
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
859
+ # object reference to use this method on
860
+ # @param heartbeat_ivl [Integer, #to_int, #to_i]
861
+ # @return [void]
862
+ def self.set_heartbeat_ivl(self_p, heartbeat_ivl)
863
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
864
+ heartbeat_ivl = Integer(heartbeat_ivl)
865
+ result = ::CZMQ::FFI.zsock_set_heartbeat_ivl(self_p, heartbeat_ivl)
866
+ result
867
+ end
868
+
869
+ # Get socket option `heartbeat_ttl`.
870
+ #
871
+ # @return [Integer]
872
+ def heartbeat_ttl()
873
+ raise DestroyedError unless @ptr
874
+ self_p = @ptr
875
+ result = ::CZMQ::FFI.zsock_heartbeat_ttl(self_p)
876
+ result
877
+ end
878
+
879
+ # Get socket option `heartbeat_ttl`.
880
+ #
881
+ # This is the polymorphic version of #heartbeat_ttl.
882
+ #
883
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
884
+ # object reference to use this method on
885
+ # @return [Integer]
886
+ def self.heartbeat_ttl(self_p)
887
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
888
+ result = ::CZMQ::FFI.zsock_heartbeat_ttl(self_p)
889
+ result
890
+ end
891
+
892
+ # Set socket option `heartbeat_ttl`.
893
+ #
894
+ # @param heartbeat_ttl [Integer, #to_int, #to_i]
895
+ # @return [void]
896
+ def set_heartbeat_ttl(heartbeat_ttl)
897
+ raise DestroyedError unless @ptr
898
+ self_p = @ptr
899
+ heartbeat_ttl = Integer(heartbeat_ttl)
900
+ result = ::CZMQ::FFI.zsock_set_heartbeat_ttl(self_p, heartbeat_ttl)
901
+ result
902
+ end
903
+
904
+ # Set socket option `heartbeat_ttl`.
905
+ #
906
+ # This is the polymorphic version of #set_heartbeat_ttl.
907
+ #
908
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
909
+ # object reference to use this method on
910
+ # @param heartbeat_ttl [Integer, #to_int, #to_i]
911
+ # @return [void]
912
+ def self.set_heartbeat_ttl(self_p, heartbeat_ttl)
913
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
914
+ heartbeat_ttl = Integer(heartbeat_ttl)
915
+ result = ::CZMQ::FFI.zsock_set_heartbeat_ttl(self_p, heartbeat_ttl)
916
+ result
917
+ end
918
+
919
+ # Get socket option `heartbeat_timeout`.
920
+ #
921
+ # @return [Integer]
922
+ def heartbeat_timeout()
923
+ raise DestroyedError unless @ptr
924
+ self_p = @ptr
925
+ result = ::CZMQ::FFI.zsock_heartbeat_timeout(self_p)
926
+ result
927
+ end
928
+
929
+ # Get socket option `heartbeat_timeout`.
930
+ #
931
+ # This is the polymorphic version of #heartbeat_timeout.
932
+ #
933
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
934
+ # object reference to use this method on
935
+ # @return [Integer]
936
+ def self.heartbeat_timeout(self_p)
937
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
938
+ result = ::CZMQ::FFI.zsock_heartbeat_timeout(self_p)
939
+ result
940
+ end
941
+
942
+ # Set socket option `heartbeat_timeout`.
943
+ #
944
+ # @param heartbeat_timeout [Integer, #to_int, #to_i]
945
+ # @return [void]
946
+ def set_heartbeat_timeout(heartbeat_timeout)
947
+ raise DestroyedError unless @ptr
948
+ self_p = @ptr
949
+ heartbeat_timeout = Integer(heartbeat_timeout)
950
+ result = ::CZMQ::FFI.zsock_set_heartbeat_timeout(self_p, heartbeat_timeout)
951
+ result
952
+ end
953
+
954
+ # Set socket option `heartbeat_timeout`.
955
+ #
956
+ # This is the polymorphic version of #set_heartbeat_timeout.
957
+ #
958
+ # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
959
+ # object reference to use this method on
960
+ # @param heartbeat_timeout [Integer, #to_int, #to_i]
961
+ # @return [void]
962
+ def self.set_heartbeat_timeout(self_p, heartbeat_timeout)
963
+ self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
964
+ heartbeat_timeout = Integer(heartbeat_timeout)
965
+ result = ::CZMQ::FFI.zsock_set_heartbeat_timeout(self_p, heartbeat_timeout)
966
+ result
967
+ end
968
+
819
969
  # Get socket option `tos`.
820
970
  #
821
971
  # @return [Integer]
@@ -492,6 +492,12 @@ module CZMQ
492
492
  attach_function :zsock_flush, [:pointer], :void, **opts
493
493
  attach_function :zsock_is, [:pointer], :bool, **opts
494
494
  attach_function :zsock_resolve, [:pointer], :pointer, **opts
495
+ attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
496
+ attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
497
+ attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
498
+ attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
499
+ attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
500
+ attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
495
501
  attach_function :zsock_tos, [:pointer], :int, **opts
496
502
  attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
497
503
  attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
@@ -1,5 +1,5 @@
1
1
  module CZMQ
2
2
  module FFI
3
- GEM_VERSION = "0.5.0"
3
+ GEM_VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: czmq-ffi-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.5.1
144
+ rubygems_version: 2.5.1
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: The low-level Ruby binding for CZMQ (generated using zproject)