Send test

This commit is contained in:
2025-06-22 15:32:52 -06:00
parent d55f3828ba
commit b0371b3444
+3 -2
View File
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
char s[INET6_ADDRSTRLEN]; char s[INET6_ADDRSTRLEN];
char *msg; char *msg;
char *remote_machine, *local_port, *remote_port; char *remote_machine, *local_port, *remote_port;
int status, socketfd, confd; int status, socketfd, confd, len;
int yes = 1; int yes = 1;
if (argc != 4) { if (argc != 4) {
@@ -125,7 +125,8 @@ int main(int argc, char* argv[]) {
s, s,
sizeof s); sizeof s);
printf("Getting chatty with %s\n", s); printf("Getting chatty with %s\n", s);
len = strlen("test");
send(confd, "test", len, 0);
} }
else { else {
/* You're the client */ /* You're the client */