How to use the _recv function from bindings

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

169
170
171
172
173
174
175
176
177
178
  return bindings.asyncAccept(this[_ID], cb);
}

recv(bufsize = _DEFAULT_BUFFER_LEN, flag = _DEFAULT_RECV_FLAG) {
  const bf = new Uint8Array(bufsize);
  const len = bindings._recv(this[_ID], bf.buffer, bufsize, flag);
  if(bf <= 0){
    this.close();
    return null;
  }else{
fork icon2
star icon2
watch icon2

+ 6 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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