예제 #1
0
파일: NN.cs 프로젝트: zvikara/NNanomsg
 /// <summary>
 ///     Receives a message into an already allocated buffer
 ///     If the message is longer than the allocated buffer, it is truncated.
 /// </summary>
 /// <returns>
 ///     The length, in bytes, of the message.
 /// </returns>
 public static int Recv(int s, byte[] buf, SendRecvFlags flags)
 {
     return(Interop.nn_recv_array(s, buf, buf.Length, (int)flags));
 }