Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. set socket.sendtimeout

set socket.sendtimeout

Scheduled Pinned Locked Moved C#
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sindhutiwari
    wrote on last edited by
    #1

    Hi, In my application i am using threads and socket programming to ping a mobile application I want to set the timeout value for the Socket.send message for this i have used socket.sendtimeout= value; but the same socket is used for asynchronous communication ....so as i have set the socket.sendtimeout value its effecting the asynchronous communication.. My aim is to Set the Timeout value only for the pinging message such that communication must not get effected,,,,( I want to set the timeout period for a particular Ping 'send' only ....) If any one knows this then Please Do Let Me Know

    its me sid

    L 1 Reply Last reply
    0
    • S sindhutiwari

      Hi, In my application i am using threads and socket programming to ping a mobile application I want to set the timeout value for the Socket.send message for this i have used socket.sendtimeout= value; but the same socket is used for asynchronous communication ....so as i have set the socket.sendtimeout value its effecting the asynchronous communication.. My aim is to Set the Timeout value only for the pinging message such that communication must not get effected,,,,( I want to set the timeout period for a particular Ping 'send' only ....) If any one knows this then Please Do Let Me Know

      its me sid

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, FYI: you can perfcrm a ping to an IP address using the Ping Class, which exists in .NET since 2.0; not in CF, so it would have to be the mobile that is being pinged. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups