Getting a response every 15 sec


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Getting a response every 15 sec

  1. #1
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    Getting a response every 15 sec

    Hello Guys,
    I've created a communication application using TcpClient (a console application using C#).
    It's working correctly, but I need the server TcpClient application send me a message every 15 seconds.
    How can I tell the server application to send a message to the client application every 15sec ?
    Does anybody have simple sample code that could show me how to do it ?

    Thank you all

  2. #2
    Join Date
    Jan 2007
    Posts
    27

    Timer

    You will want to look into using the Timer component. It's a very simple to use component that fires an event every x number of milliseconds.

    Here's an example of how to work with timers:

    http://abstractvb.com/code.asp?A=1032

    It's a windows forms application, but it should give you the idea.
    Last edited by waterjock2000; 01-03-2007 at 08:41 AM.

  3. #3
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    Getting a response every 15 sec (NEW QUESTION)

    Thank you for the advice, in fact I will use timers.
    I also would like to know how can I send messages to the TcpClient SERVER application from a TcpClient CLIENT application ?
    I need my CLIENTcation to receive messages from the SERVER application, but I must allow users to send messages to the SERVER too.
    Do you know how can I do it ?

  4. #4
    Join Date
    Jan 2007
    Posts
    27
    Take a look at this sample:
    http://www.dotnet247.com/247referenc...es/0/1218.aspx

    It's a TcpIp based multi user chat system. It should help you flush out any learning curve with sockets in .NET

  5. #5
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    Getting a response every 15 sec

    Thank you both, very very much!
    This article was very helpful !

    Thank you !

Similar Threads

  1. Replies: 1
    Last Post: 04-07-2006, 10:36 AM
  2. Java IDEs--benefit or liability? (AUTHOR RESPONSE)
    By Brad O'Hearne in forum Talk to the Editors
    Replies: 4
    Last Post: 06-20-2002, 04:05 PM
  3. Replies: 1
    Last Post: 07-21-2000, 10:35 AM
  4. Replies: 0
    Last Post: 07-20-2000, 04:57 AM
  5. Replies: 0
    Last Post: 07-20-2000, 04:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center