Send test
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user