blob: 5dde0bb0a387aeacc11b6125afea1f024e3adadf [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2#ifndef SOCKET_HELPER_H
3#define SOCKET_HELPER_H
4
5#include "headers.h"
6
7/*
8typedef union
9{
10 struct sockaddr_in sockaddr;
11 struct sockaddr_in6 sockaddr6;
12} zperf_sockaddr_t;
13*/
14typedef struct sockaddr_in zping_sockaddr_t;
15
16void close_one_socket(int sock);
17
18void SockAddr_setHostname(const char* inHostname, zping_sockaddr_t *inSockAddr) ;
19
20int setsock_tcp_windowsize(int inSock, int inTCPWin, int inSend);
21
22void setsock_tcp_mss(int inSock, int inMSS);
23
24#endif