Logo 
Search:

Networking Articles

Submit Article
Home » Articles » Networking » TCP/IPRSS Feeds

TCP/IP program of inetd client for DAYTIME service

Posted By: Milind Mishra     Category: Networking     Views: 2306

TCP/IP program of inetd client for DAYTIME service.

Code for TCP/IP program of inetd client for DAYTIME service in Networking

#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>

int
main(int argc, char *argv[])
{
        char    *pts;                   /* pointer to time string       */
        time_t  now;                    /* current time                 */char    *ctime();

        (void) time(&now);
        pts = ctime(&now);
        (void) write(0, pts, strlen(pts));
    exit(0);
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program of inetd client for DAYTIME service Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program of inetd client for DAYTIME service is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!