Results 1 to 7 of 7

Thread: Winsock receiving more than 8KBytes problem

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    11

    Unhappy Winsock receiving more than 8KBytes problem


    Hi, i do a project with ethernet and i discovered a problem which is related to winsock in my software.

    When remote sides sends data in continues packets of 512Bytes each time, the winsock stops reading the buffer after 16 data arrivals (512 x 16 = 8192Bytes).
    In case of file with size till 8K there isn't a problem, but when the file includes 8193 bytes and up which is done by 17 packets the winsock reads only 16, which cause red error message(mismatch between the original file that was sent to remote side and this which returns from remote side.

    Do you know how to cancel this limitation?

    Here is the data arrival routine:

    Private Sub WS_Command_DataArrival(ByVal bytesTotal As Long)

    GetData: WS_Command.GetData DataStr, vbArray + vbByte


    If (Mid(DataStr, 9, 4) = ContinCmdFromSwift) Then 'continues command index from remote side to PC = &H80000000 (bit 31 = '1')

    'get data from bytes 17 and away
    FileData = FileData + Right(DataStr, Len(DataStr) - 16)


    End If


    End Sub

    Please advise.

    Thank you.

    Best regards.

    I appreciate your help.
    Last edited by OferTs; Oct 28th, 2006 at 01:38 PM.

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