Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed IDENTITY for 4.x options API

  • Loading branch information...
commit 114f8a53ceeecbdf435e5525e15df98f2b3a8ccf 1 parent 3078d13
Pieter Hintjens hintjens authored

Showing 3 changed files with 0 additions and 16 deletions. Show diff stats Hide diff stats

  1. +0 1  include/zsockopt.h
  2. +0 1  sockopts.xml
  3. +0 14 src/zsockopt.c
1  include/zsockopt.h
@@ -135,7 +135,6 @@ int zsockopt_events (void *socket);
135 135 void zsockopt_set_sndhwm (void *socket, int sndhwm);
136 136 void zsockopt_set_rcvhwm (void *socket, int rcvhwm);
137 137 void zsockopt_set_affinity (void *socket, int affinity);
138   -void zsockopt_set_identity (void *socket, char * identity);
139 138 void zsockopt_set_rate (void *socket, int rate);
140 139 void zsockopt_set_recovery_ivl (void *socket, int recovery_ivl);
141 140 void zsockopt_set_sndbuf (void *socket, int sndbuf);
1  sockopts.xml
@@ -72,7 +72,6 @@ zsockopt_set_hwm (void *socket, int hwm)
72 72 <option name = "sndhwm" type = "int" mode = "rw" test = "PUB" />
73 73 <option name = "rcvhwm" type = "int" mode = "rw" test = "SUB" />
74 74 <option name = "affinity" type = "uint64" mode = "rw" test = "SUB" />
75   - <option name = "identity" type = "blob" mode = "rw" test = "SUB" />
76 75 <option name = "rate" type = "int" mode = "rw" test = "SUB" />
77 76 <option name = "recovery_ivl" type = "int" mode = "rw" test = "SUB" />
78 77 <option name = "sndbuf" type = "int" mode = "rw" test = "PUB" />
14 src/zsockopt.c
@@ -913,17 +913,6 @@ zsockopt_affinity (void *socket)
913 913
914 914
915 915 // --------------------------------------------------------------------------
916   -// Set socket ZMQ_IDENTITY value
917   -
918   -void
919   -zsockopt_set_identity (void *socket, char * identity)
920   -{
921   - int rc = zmq_setsockopt (socket, ZMQ_IDENTITY, identity, strlen (identity));
922   - assert (rc == 0 || errno == ETERM);
923   -}
924   -
925   -
926   -// --------------------------------------------------------------------------
927 916 // Set socket ZMQ_RATE value
928 917
929 918 void
@@ -1429,9 +1418,6 @@ zsockopt_test (Bool verbose)
1429 1418 zsockopt_affinity (socket);
1430 1419 zsocket_destroy (ctx, socket);
1431 1420 socket = zsocket_new (ctx, ZMQ_SUB);
1432   - zsockopt_set_identity (socket, "test");
1433   - zsocket_destroy (ctx, socket);
1434   - socket = zsocket_new (ctx, ZMQ_SUB);
1435 1421 zsockopt_set_rate (socket, 1);
1436 1422 assert (zsockopt_rate (socket) == 1);
1437 1423 zsockopt_rate (socket);

0 comments on commit 114f8a5

Please sign in to comment.
Something went wrong with that request. Please try again.