skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

socket_deadlineconnstamp4_u32.c (302B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/uint32.h>
      4 #include <skalibs/socket.h>
      5 
      6 int socket_deadlineconnstamp4_u32 (int s, uint32_t ip, uint16_t port, tain const *deadline, tain *stamp)
      7 {
      8   char pack[4] ;
      9   uint32_pack_big(pack, ip) ;
     10   return socket_deadlineconnstamp4(s, pack, port, deadline, stamp) ;
     11 }