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 *msg;
char *remote_machine, *local_port, *remote_port;
int status, socketfd, confd;
int status, socketfd, confd, len;
int yes = 1;
if (argc != 4) {
@@ -125,7 +125,8 @@ int main(int argc, char* argv[]) {
s,
sizeof s);
printf("Getting chatty with %s\n", s);
len = strlen("test");
send(confd, "test", len, 0);
}
else {
/* You're the client */