×

DETERMINING ON DEMAND RIGHT SIZE BUFFERING WITHIN A SOCKET SERVER IMPLEMENTATION

  • US 20080177973A1
  • Filed: 03/27/2008
  • Published: 07/24/2008
  • Est. Priority Date: 11/21/2001
  • Status: Active Grant
First Claim
Patent Images

1. A computer readable storage medium containing a program which, when executed by a computer, performs operations for processing messages, the operations comprising:

  • processing an input operation issued from a sockets server application to a sockets layer of the computer, wherein the input operation is configured with a buffer mode parameter indicating to the sockets layer a buffer acquisition method for acquiring a buffer for containing data received from a remote source via a network connection;

    receiving the data from the remote source via the network connection;

    subsequently, obtaining the buffer according to the buffer acquisition method, wherein the obtained buffer is sized exactly to the size of the data received from the remote source; and

    allocating the obtained buffer, wherein allocating the obtained buffer is dependent on a value of the buffer mode parameter and comprises one of;

    allocating the buffer from an application-supplied storage owned by the sockets server application when the buffer mode parameter has a first value; and

    allocating the buffer from a system-supplied storage not owned by the sockets server application when the buffer mode parameter has a second value.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×