IP Library Granted Patent US 7,373,378
Granted Patent B2
US 7,373,378 · App. 10/038,008 · Granted May 13, 2008

Method for determining on demand right size buffering within a socket server implementation

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,373,378
App. No.
10/038,008
Granted
May 13, 2008
Kind
B2
Abstract

Method, apparatus and article of manufacture for acquiring a buffer after data from a remote sender (e.g., client) has been received by a local machine (e.g., server). Because the client data has already been received when the buffer is acquired, the buffer may be sized exactly to the size of the client data. In general, the buffer may be caller supplied or system supplied.

Claims (13)

1. A method of processing messages, comprising:

receiving, at a socket configured for a server application executing on a computer, data from a remote source via a network connection prior to allocating a buffer to contain the data; and subsequently:

determining a mode to obtain the buffer according to a buffer mode parameter supplied with a receive operation call, wherein the buffer mode parameter indicates a buffer acquisition method for acquiring a buffer to contain the data received from a remote source via the network connection;

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.

2. The method of claim 1 , wherein the messages are client-server messages.

3. The method of claim 1 , wherein the data is received over a sockets streaming protocol.

4. The method of claim 1 , wherein the allocating is performed in response to a buffer request from the socket.

5. The method of claim 1 , wherein the network connection is a Transport Control Protocol/Internet Protocol (TCP/IP) connection.

6. The method of claim 1 , wherein allocating the buffer comprises:

processing a buffer request from a sockets layer after receiving the data; and providing the buffer to the sockets layer.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 4, 2002
From: BAUMAN, MARK LINUS; CERNOHOUS, BOB RICHARD; HOFER, KENT L.; KASPERSKI, JOHN CHARLES; SIMONSON, STEVEN JOHN; WEEKS, JAY ROBERT
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 012451/0632 →
Continuity (2)
Continuation In Part 0999085000 · Nov 21, 2001
Related Publication 20030097401A1 · May 22, 2003