Patent ID: 7822814
Filing Date: 2010-10-26
Classification: H04L

Abstract:
1. A non-transitory 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.