How do I split packets?

What code would I use to split packets or slow them down


Answer this question

How do I split packets?

  • SGrieco

     

    Kane,

    This is a DotNet Forum. Since you are dealing with a COM based product, you'll receive a better answer from a Vb6 group. Please see the VB6 announcements at the top of this forum.

     



  • Deepak Kapoor

    I assume that you are using UDP since you are referring to packets and the good ole' winsock control.

    I haven't tried this myself, but couldn't you use setsockopt(MySocket.SocketHandle, SOL_SOCKET, SO_RCVBUF, <whatever buffer size you want as a 32bit int>, 4) to set the receive buffer to an appropriate size

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/winsock/winsock/setsockopt_2.asp

    Best regards,
    Johan Stenberg



  • Rolan

     

     

    Is this a .Dot Net Application I don't think you can throttle that ocx.  It's synchronous isn't it

    Basically you take what you receive.

    But isn't this a surface level statement of the problem You are having a hard time doing something. What is that challenge underneath

     

     



  • C_Portugal

    No, it's a VB6 app, I'm tring to kill the buffer when so many packets come in..Because the buffer makes you lag... Is there anyway to do this

  • JollyDMan

    I'm tring to split the packets using winsck.ocx so I can get rid of the buffer... any idea on how to split the packets so that there smaller when they come in or slow the packets down when they come in



  • RiteshGpt

    Yes, that works, thank you

  • RaimondB

     

    can you say a lot more about what you are doing



  • How do I split packets?