WinSock

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Niels Borg

    WinSock

    Hi,

    I'm writing app where I use WinSock, but I have experienced a problem.
    WinSock only sends the data after finishing the calling sub/function. Can I
    force WinSock immediately as I need to send several packets but they have to
    be sent separate?

    Many thanks
    Niels Borg


  • Bob Butler

    #2
    Re: WinSock

    "Niels Borg" <nbborg@hotmail .com> wrote in message
    news:3f15451f$0 $32493$edfadb0f @dread16.news.t ele.dk[color=blue]
    > Hi,
    >
    > I'm writing app where I use WinSock, but I have experienced a problem.
    > WinSock only sends the data after finishing the calling sub/function.
    > Can I force WinSock immediately as I need to send several packets but
    > they have to be sent separate?[/color]

    the winsock control benefits a lot from using DoEvents

    be aware that tcp/ip packets are split and/or merged in transit so what you
    send will arrive in the same order but not necessarily the same number and
    size packets

    Comment

    Working...