Modifying application behaviour
First Claim
1. A data processing system comprising:
- a computing device having a processor and memory, the computing device configured with;
an operating system providing a socket library;
an application supported by the operating system and configured to receive messages at a socket established by means of the socket library;
a user level network protocol stack operable to perform receive processing of messages held at a receive queue corresponding to the said socket; and
a callback function operable to determine on behalf of the application whether to discard a message held at the receive queue;
wherein the application is operable to make a plurality of different calls of a first type to the socket library that cause state of the receive queue of the said socket to be revealed and the callback function is registered with the user level network protocol stack such that, in response to calls of the first type, the user level network protocol stack invokes the callback function in respect of each message held at the receive queue so as to cause the callback function to indicate to the user level network protocol stack whether each respective message at the receive queue is to be discarded,wherein the user level network protocol stack is configured to provide packets that are not indicated to be discarded to a buffer of the application for delivery to the application.
6 Assignments
0 Petitions
Accused Products
Abstract
A data processing system comprising: an operating system providing an application programming interface; an application supported by the operating system and operable to make calls to the application programming interface; an intercept library configured to intercept calls of a predetermined set of call types made by the application to the application programming interface; and a configuration data structure defining at least one action to be performed for each of a plurality of sequences of one or more calls having predefined characteristics, the one or more calls being of the predetermined set of call types; wherein the intercept library is configured to, on intercepting a sequence of one or more calls defined in the configuration data structure, perform the corresponding action(s) defined by the configuration data structure.
205 Citations
19 Claims
-
1. A data processing system comprising:
-
a computing device having a processor and memory, the computing device configured with; an operating system providing a socket library; an application supported by the operating system and configured to receive messages at a socket established by means of the socket library; a user level network protocol stack operable to perform receive processing of messages held at a receive queue corresponding to the said socket; and a callback function operable to determine on behalf of the application whether to discard a message held at the receive queue; wherein the application is operable to make a plurality of different calls of a first type to the socket library that cause state of the receive queue of the said socket to be revealed and the callback function is registered with the user level network protocol stack such that, in response to calls of the first type, the user level network protocol stack invokes the callback function in respect of each message held at the receive queue so as to cause the callback function to indicate to the user level network protocol stack whether each respective message at the receive queue is to be discarded, wherein the user level network protocol stack is configured to provide packets that are not indicated to be discarded to a buffer of the application for delivery to the application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A method of filtering messages at a receive queue of a data processing system, the receive queue being configured to receive messages for a socket of an application and the socket being established by means of a socket library, the data processing system further comprising a user level network protocol stack operable to perform receive processing of messages held at the receive queue, the method comprising:
-
registering a callback function such that, in response to calls from the application to the socket library that cause state of the receive queue of the socket to be revealed, the user level network protocol stack invokes the callback function in respect of each message held at the receive queue, the callback function being arranged to indicate to the user level network protocol stack whether each respective message at the receive queue is to be discarded; and
discarding those messages indicated the user level network protocol stack as being for discarding,wherein the user level network protocol stack is configured to provide packets that are not indicated to be discarded to a buffer of the application for delivery to the application.
-
Specification