Results 1 to 4 of 4

Thread: Problems with getting more than 64Kbytes.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    11

    Unhappy Problems with getting more than 64Kbytes.

    Hi,

    I have written an UDP client using winsock control in vb6.
    When i load from server quantity of bytes till 64k the operation is succesful.
    When the file size in bytes is more than 64k the win socket stops getting data. I think that the winsock buffer is full and need to be cleared. Am i right? and if it so how can i clear it? if it isn't the reason what it can be? I am really struggling to findout what makes this behaviour.

    can anyone please help me...

    Thanking you in advance.

    Best regards

    Ofer

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177

    Re: Problems with getting more than 64Kbytes.

    Check out this article.

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Problems with getting more than 64Kbytes.

    Winsock Programmer's FAQ: The Lame List
    27. Assuming that a UDP datagram of any length may be sent. Criminally lame.

    Reason: Various networks all have their limitations on maximum transmission unit (MTU). As a result, fragmentation will occur, and this increases the likelihood of a corrupted datagram (more pieces to lose or corrupt). Also, the TCP/IP service providers at the receiving end may not be capable of re-assembling a large, fragmented datagram.

    Alternative: Check for the maximum datagram size with the SO_MAX_MSG_SIZE socket option, and don't send anything larger. Better yet, be even more conservative. A max of 8K is a good rule-of-thumb.
    Network support for the Lua language
    The maximum datagram size for UDP is 64K minus IP layer overhead. However datagrams larger than the link layer packet size will be fragmented, which may deteriorate performance and/or reliability.
    To misquote Obi Wan Kenobi, UDP "isn't the protocol you're looking for."

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    11

    Red face Re: Problems with getting more than 64Kbytes.

    Thank you.
    I makes a project for a large company with branches abroad.
    I solved this problem. The server which my program conects has a range of
    addresses, and my software sent it incorrect addresses because of a bug in addresses increamenting routine, so it stopped after address 64k.
    Now i have a new problem.
    Assuming my application has no bugs, can you tell me why do i get error message from server: "Remote host reset connection", and what can i do to renew the connection, except for restarting my computer.
    I appreciates your help.
    Ofer.

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