How NTP protocol works? [closed] - ntp

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I try to find ant NTP documentation for "dummies", I don't understand how NTP works. I need to write an NTP client which should just print current local time. What should I send to the server? What will I receive?

If you want to implement your own client then you need the RFC 5905 - Network Time Protocol Version 4 which specifies the protocol and algorithms of NTP. This document describes exactly what you should send to the server and what you will receive.

Related

a server client application using TCP in C in linux environment, [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i have created a server client application using TCP in C in linux environment,and it is working very well.
I wish to improve the application by including a cryptographic algorithm into it so that the server just gets to know about who has logged in and out of the server but not about the information shared between the clients.
Any suggestions for algorithm that i should employ in my project to achieve the desired result.
I am currently looking into MD5 algorithm.
As far as I understand you want to encrypt/decrypt messages between users. If so MD5 won't do it as it is just a hash function.
https://en.wikipedia.org/wiki/MD5
Probably the best algorithm to do so would be AES:
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
There are many implementation (including in C) on the web so you can literally copy-paste the code (mind the license ;) ).

Packet analyzer in c [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to capture packets which are coming from interface (say eth0) and need to print those packet details (same as wireshark) through C language. Packet can be any general packet. is there any way to achieve this ??
(I don't want to use any application like wireshark for this purpose)
OS:Centos
Try having a look at libpcap. http://www.tcpdump.org/ I believe it will do what you want.

For sockets, which side does the majority of the work? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
For sockets, which side does the majority of the work?
I've been given this question to answer and don't really understand what it means. I've browsed through the web to find answers. However, nothing. So can somebody guide me to what it's actually asking? What it means?
Thanks!
Client should know the details of the server it connects to. The connect call is instantaneous.
But on the other hand the server should be continuously listening to a port for any incoming connections in the accept call.
So technically a server would take more of the processor time.
Once the connection is established the client and server pretty much has the same work in terms of sending and receiving messages.

How to implement a simple telnet client in C to send command to server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to use telnet to send shell command or execute shell scripts on server automatically,
any one have done such problem? can you share your experience?
It's all about socket communication. You need to know how socket works. Then, implement Telnet protocol by yourself.
If you don't want to implement your own telnet libraries. You might download putty source and see if you could leverage from it.

DataBase for scheduling notification (maybe store in RAM - radis, memcashedb) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a lot of data types - datetime, e-mail, data - for sending notification.
If I use the normal database, I need to poll the database by surveying every second.
Please, help me with choice of architecture.
I want store this data in RAM - maybe redis or memcashedb
rabbitmq - is open source message broker software (i.e., message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP) standard

Resources