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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Async socket send problem?

Async socket send problem?

Scheduled Pinned Locked Moved Visual Basic
helpquestiontutoriallearning
1 Posts 1 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.
  • B Offline
    B Offline
    Benny_Lava
    wrote on last edited by
    #1

    Hi, I have a Async socket receiving app and a sending app, the receiving app works great. The problem is when i'm sending something with the sending app ( begin connect -> endConnect, BeginSend - >EndSend) The begin send callback which on the first line does: private sub beginSendCallback(byval ar as iAsyncResult) socket.endsend(ar) end sub ' This callback method is called in a matter of seconds, but the 'file has about 3-4 MB, and the sending isn't near to completion, I have a list of IP addresses in which to send the file, but because the sending to the first IP address isn't finished, although the callback method is called it moves on, and of course creates an error later in the program... So how do I stop the callback method from calling itself until the file transfer is complete, or how to somehow know when the file is completely transferred. Thank you!

    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