socket_connect4_u32.c (230B)
1 /* ISC license. */ 2 3 #include <skalibs/uint32.h> 4 #include <skalibs/socket.h> 5 6 int socket_connect4_u32 (int s, uint32_t ip, uint16_t port) 7 { 8 char pack[4] ; 9 uint32_pack_big(pack, ip) ; 10 return socket_connect4(s, pack, port) ; 11 }