Skip to content

Commit

Permalink
fixes nanomsg#612 demo/raw needs updating to use raw socket constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Aug 6, 2018
1 parent ae944a8 commit b22c1fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions demo/raw/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,10 @@ server(const char *url)
int i;

/* Create the socket. */
rv = nng_rep0_open(&sock);
rv = nng_rep0_open_raw(&sock);
if (rv != 0) {
fatal("nng_rep0_open", rv);
}
if ((rv = nng_setopt_int(sock, NNG_OPT_RAW, 1)) != 0) {
fatal("nng_setopt_int", rv);
}

for (i = 0; i < PARALLEL; i++) {
works[i] = alloc_work(sock);
Expand Down

0 comments on commit b22c1fa

Please sign in to comment.