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

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

int socket_deadlineconnstamp4_u32 (int s, uint32 ip, uint16 port, tain_t const *deadline, tain_t *stamp)
{
  char pack[4] ;
  uint32_pack_big(pack, ip) ;
  return socket_deadlineconnstamp4(s, pack, port, deadline, stamp) ;
}