Results 1 to 3 of 3

Thread: Winsock Buffer Speed

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    25

    Winsock Buffer Speed

    Hey,
    My friend told me that there is a delay with the winsock buffer so that information is sent not instantly. How do you change it? Even if this is not true or you don't know please point me to anything that has info about the winsock buffer
    thanks

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

    Re: Winsock Buffer Speed

    Quote Originally Posted by Nafto
    Hey,
    My friend told me that there is a delay with the winsock buffer so that information is sent not instantly. How do you change it? Even if this is not true or you don't know please point me to anything that has info about the winsock buffer
    thanks
    Are we using Vb 6 for this app? Could you explain a bit more of what you mean by the winsock buffer is slow, i've looked into the matter for you and as of yet have found no articles on the net but if you provide more details i can do my best to help you out

    Pino

  3. #3
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Winsock Buffer Speed

    If we're talking about the Winsock control, what you may refer to is the fact that when you're sending a large construct it appears that the .Send isn't performed at once. In fact, the .Send method blocks your code and only exits once it's done sending all the data and this may appear as lag. The same thing happens on the receiving end. However, the .Send method starts sending data packets to the remote party at once but you can't see this if you're using the Winsock control because it's working synchronously - you need to use sockets to look behind the curtains for that.

    Cheers,
    NTG
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

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