Sponsored Content
Full Discussion: Linux Daytime
Operating Systems Linux Linux Daytime Post 302359350 by fpmurphy on Tuesday 6th of October 2009 10:10:40 AM
Old 10-06-2009
In redhat, the daytime service is built into xinetd. Its configuration files are in /etc/xinetd.d
i.e. daytime-dgram or daytime-stream. The RFC for the daytime protocol (RFC 867) is silent on the format of the daytime string.
Quote:
There is no specific syntax for the daytime. It is recommended that
it be limited to the ASCII printing characters, space, carriage
return, and line feed. The daytime should be just one line.
No options are provided to configure the daytime string.

However, you can configure xinetd to use an external utility as the daytime server by setting options in the configuration files. Thus you can write your own utility to output a daytime string in the format you want and configure xinetd to use this utility.

Last edited by fpmurphy; 10-06-2009 at 11:22 AM..
 

2 More Discussions You Might Find Interesting

1. Programming

why daytime don't work?

Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFFSIZE 150 int main(){ ... (2 Replies)
Discussion started by: konvalo
2 Replies

2. Programming

Using Different port for Daytime Service

Hi all, is it possible to use a different port number for daytime service. By default the port number of daytime service is 13, so what if I want to get the time from a different port number e.g say 9000 (or any other port). I guess this would remain the same on the server side !... (2 Replies)
Discussion started by: manisum
2 Replies
in.daytimed(1M) 					  System Administration Commands					   in.daytimed(1M)

NAME
in.daytimed - UDP or TCP daytime protocol service daemon SYNOPSIS
in.daytimed FMRI svc:/internet/daytime:default DESCRIPTION
FMRI stands for Fault Management Resource Identifier. It is used to identify resources managed by the Fault Manager. See fmd(1M) and smf(5). The in.daytimed service provides the server-side of the daytime protocol. This protocol is used for debugging and bandwidth measurement and is available on both TCP and UDP transports, through port 13. The in.daytimed service is an inetd(1M) smf(5) delegated service. The in.daytimed detects which transport is requested by examining the socket it is passed by the inetd daemon. TCP-based service Once a connection is established, the in.daytimed generates the current date and time in ctime(3C) format as 7-bit ASCII and sends it through the connection. The server then closes the connection. Any data received from the client side of the connection is discarded. UDP-based service The in.daytimed listens for UDP datagrams. When a datagram is received, the server generates the current date and time in ctime(3C) format as 7-bit ASCII and inserts it in a UDP datagram sent in response to the client's request. Any received data is ignored. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcnsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
inetd(1M), attributes(5), smf(5) RFC 867 SunOS 5.10 23 Aug 2004 in.daytimed(1M)
All times are GMT -4. The time now is 12:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy