MCPcopy Create free account
hub / github.com/apache/trafficserver / reset

Method reset

src/iocore/net/NetVCOptions.cc:29–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "iocore/net/Socks.h"
28
29void
30NetVCOptions::reset()
31{
32 ip_proto = USE_TCP;
33 ip_family = AF_INET;
34 local_ip.invalidate();
35 local_port = 0;
36 addr_binding = ANY_ADDR;
37 socks_support = NORMAL_SOCKS;
38 socks_version = SOCKS_DEFAULT_VERSION;
39 socket_recv_bufsize =
40#if defined(RECV_BUF_SIZE)
41 RECV_BUF_SIZE;
42#else
43 0;
44#endif
45 socket_send_bufsize = 0;
46 sockopt_flags = 0;
47 packet_mark = 0;
48 packet_tos = 0;
49 packet_notsent_lowat = 0;
50
51 etype = ET_NET;
52
53 sni_servername = nullptr;
54 ssl_servername = nullptr;
55 sni_hostname = nullptr;
56 ssl_client_cert_name = nullptr;
57 ssl_client_private_key_name = nullptr;
58}
59
60void
61NetVCOptions::set_sock_param(int _recv_bufsize, int _send_bufsize, unsigned long _opt_flags, unsigned long _packet_mark,

Callers

nothing calls this directly

Calls 1

invalidateMethod · 0.45

Tested by

no test coverage detected