summaryrefslogtreecommitdiff
path: root/dwsock.h
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
commit54db88482aa35b971b07585510761dbd199fe987 (patch)
tree1b224b09fab839da45251c18128c5d79a63e2829 /dwsock.h
parent28348e0eac8c2f853ff8c7d577688d1766ee5bd6 (diff)
parentc264c0c63857e0c36303687d2dfc533500b93cf1 (diff)
Update upstream source from tag 'upstream/0.0.0.71'
Update to upstream version '0.0.0.71' with Debian dir a161df0a9b21e6c26b592a34373aa7d85d976578
Diffstat (limited to 'dwsock.h')
-rw-r--r--dwsock.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/dwsock.h b/dwsock.h
deleted file mode 100644
index 986f6a2..0000000
--- a/dwsock.h
+++ /dev/null
@@ -1,21 +0,0 @@
-
-/* dwsock.h - Socket helper functions. */
-
-#ifndef DWSOCK_H
-#define DWSOCK_H 1
-
-#define DWSOCK_IPADDR_LEN 48 // Size of string to hold IPv4 or IPv6 address.
- // I think 40 would be adequate but we'll make
- // it a little larger just to be safe.
- // Use INET6_ADDRSTRLEN (from netinet/in.h) instead?
-
-int dwsock_init (void);
-
-int dwsock_connect (char *hostname, char *port, char *description, int allow_ipv6, int debug, char ipaddr_str[DWSOCK_IPADDR_LEN]);
- /* ipaddr_str needs to be at least SOCK_IPADDR_LEN bytes */
-
-char *dwsock_ia_to_text (int Family, void * pAddr, char * pStringBuf, size_t StringBufSize);
-
-void dwsock_close (int fd);
-
-#endif \ No newline at end of file