Results 1 to 3 of 3

Thread: Winsock Server Time?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Location
    Everywhere
    Posts
    41

    Question Winsock Server Time?

    Pretty much what the title says. How can I get the local time of the Winsock server the user is connected to? I'm making a chat program and I want to be able to display a message to the user like "You have connected to the chat server. The local server time is 12:15PM on Sunday, October 25, 1983". Is this possible? Thanks.

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177

    Re: Winsock Server Time?

    That would be a function of the chat server. When the connection is established, it will have to format its date/time in the text string that you suggested and send the tring back to the client.

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Winsock Server Time?

    as has been said there is no set method like with some langauges, you have to invent one, and send the time via string to the client

    Pino

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width