aboutsummaryrefslogtreecommitdiff
path: root/common/testnum.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-04-16 11:33:11 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2021-04-16 11:33:11 -0400
commita60a9d10ce94acc0c5bfed2a20c8bed4e91be725 (patch)
tree59cfacd7c0460817b434768fac12a8c56ae2c946 /common/testnum.c
parentefb5d8cec9531637c91fc1087f9c83b4d89a5612 (diff)
downloadlevitating-a60a9d10ce94acc0c5bfed2a20c8bed4e91be725.tar.gz
levitating-a60a9d10ce94acc0c5bfed2a20c8bed4e91be725.zip
Fixed issue with connect calls that were manifested on macOS.
Diffstat (limited to 'common/testnum.c')
-rw-r--r--common/testnum.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/testnum.c b/common/testnum.c
new file mode 100644
index 0000000..0d6715b
--- /dev/null
+++ b/common/testnum.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <netinet/in.h>
+
+void output_sa(struct sockaddr_in *sa)
+{
+ printf("sin_len is %d\n", sa->sin_len);
+ printf("sin_family is %d\n", sa->sin_family);
+ printf("sin_port is %d\n", sa->sin_port);
+ printf("sin_addr is %d\n", sa->sin_addr.s_addr);
+ printf("sizeof is %lu\n", sizeof(sa));
+}