summaryrefslogtreecommitdiff
path: root/src/libstddjb/socket_deadlineconnstamp4_u32.c
blob: 52871000d2bffa5d4076c447f1921b66f6e1eccb (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/uint32.h>
#include <skalibs/socket.h>

int socket_deadlineconnstamp4_u32 (int s, uint32_t ip, uint16_t port, tain const *deadline, tain *stamp)
{
  char pack[4] ;
  uint32_pack_big(pack, ip) ;
  return socket_deadlineconnstamp4(s, pack, port, deadline, stamp) ;
}