recvfrom function winsock

int recvfrom(
  1. int s,
  2. Pointer<Utf8> buf,
  3. int len,
  4. int flags,
  5. Pointer<SOCKADDR> from,
  6. Pointer<Int32> fromlen,
)

The recvfrom function receives a datagram, and stores the source address.

int recvfrom(
  SOCKET   s,
  char     *buf,
  int      len,
  int      flags,
  sockaddr *from,
  int      *fromlen
);

Implementation

int recvfrom(
  int s,
  Pointer<Utf8> buf,
  int len,
  int flags,
  Pointer<SOCKADDR> from,
  Pointer<Int32> fromlen,
) => _recvfrom(s, buf, len, flags, from, fromlen);