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

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

int socket_connect4_u32 (int s, uint32 ip, uint16 port)
{
  char pack[4] ;
  uint32_pack_big(pack, ip) ;
  return socket_connect4(s, pack, port) ;
}