Patent ID: 7065581

Claim:
A method of performing a bulk read, comprising: creating a socket structure for a socket associated with a logical port, wherein the socket structure contains a socket receive buffer; initiating, by a user associated with the logical port, a bulk read function having a bulk read size; storing the bulk read size in a field in the socket structure; checkine state of the flag in the socket structure; determining if an amount of data stored in the socket receive buffer is equal to or greater than the balk read size, if the flag is set; activating the bulk read function only when there is an amount of data in the socket receive buffer equal to or greater than the bulk read size in response to setting of the flag in the socket structure; and informing a sending device that a full window size of data is available in the socket receive buffer, if the flag is set and the amount of data stored in the socket receive buffer is less than the bulk read size.