aboutsummaryrefslogtreecommitdiff
path: root/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'send.c')
-rw-r--r--send.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/send.c b/send.c
index 693321e..cea4c2d 100644
--- a/send.c
+++ b/send.c
@@ -26,8 +26,6 @@ void timestamp(char timestamp[MESSAGE_TIMESTAMP_LEN])
strftime(timestamp, MESSAGE_TIMESTAMP_LEN, "%H:%M:%S", ltime);
}
-
-
int main(void)
{
serverfd = socket(AF_INET, SOCK_STREAM, 0);
@@ -45,15 +43,13 @@ int main(void)
struct message input = {
.author = "Friendship",
- .timestamp = ""
};
- input.text = "HII!!";
+ input.text = "Hello from send";
input.len = str_len(input.text);
+ printf("input.len: %d\n", input.len);
timestamp(input.timestamp);
send_message(input, serverfd);
- // send_message(input);
- // send_message(input);
return 0;
}