How to use the Recv function from bindings

Find comprehensive JavaScript bindings.Recv code examples handpicked from public code repositorys.

185
186
187
188
189
190
191
192
193
194
if (this.closed){
  this.push(null);
  return;
}

var msg = nn.Recv(this.binding, this.nndontwait);

if(this.type === 'surveyor') {
      if(msg < 0 && nn.Errno() === nn.EFSM) {
          this._stopPollSend();
fork icon993
star icon0
watch icon1

+ 33 other calls in file

133
134
135
136
137
138
139
140
141
142
        this.queue.unshift(buf);
    });
};

Socket.prototype._receive = function () {
    var msg = nn.Recv(this.binding, 0);

    if(this.type == 'surveyor') {
        if(msg < 0 && nn.Errno() == nn.EFSM) {
            this.mask = nn.NN_POLLOUT;
fork icon70
star icon3
watch icon2

+ 19 other calls in file

178
179
180
181
182
183
184
185
186
187
if (this.closed){
  this.push(null);
  return;
}

var msg = nn.Recv(this.binding, nn.NN_DONTWAIT);

if(this.type === 'surveyor') {
      if(msg < 0 && nn.Errno() === nn.EFSM) {
          this._stopPollSend();
fork icon70
star icon0
watch icon15

+ 25 other calls in file

111
112
113
114
115
116
117
118
119
120
  case 'sub':
  case 'pair':
  case 'bus':
  case 'req':
  case 'resp':
  case 'respondent': nn.Recv( s, recv )
    break
}

function recv (msg){
fork icon4
star icon10
watch icon7

+ 43 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)