METHOD FOR PROCESSING SOCKET, METHOD AND APPARATUS FOR TRANSMITTING PACKET DATA
First Claim
1. A method for processing a SOCKET, comprising:
- a connection management application obtaining a SOCKET identifier corresponding to each service application, and transmitting the SOCKET identifier and a modification instruction to a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack;
the TCP/IP protocol stack searching for SOCKET file description information corresponding to the SOCKET identifier, and modifying the SOCKET file description information according to the modification instruction.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a method for processing a SOCKET, a method and an apparatus for transmitting packet data, wherein, the method for processing a SOCKET comprises: a connection management application obtaining a SOCKET identifier corresponding to each service application, and transmitting the SOCKET identifier and a modification instruction to a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack; the TCP/IP protocol stack searching for SOCKET file description information corresponding to the SOCKET identifier, and modifying the SOCKET file description information according to the modification instruction. After adopting the technical solution mentioned above, the IP binding operation across applications can be performed on a single-process or multi-process operating system, and the application level traffic selection of the different data connection can be performed according to intention of a user.
37 Citations
10 Claims
-
1. A method for processing a SOCKET, comprising:
-
a connection management application obtaining a SOCKET identifier corresponding to each service application, and transmitting the SOCKET identifier and a modification instruction to a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack; the TCP/IP protocol stack searching for SOCKET file description information corresponding to the SOCKET identifier, and modifying the SOCKET file description information according to the modification instruction. - View Dependent Claims (2)
-
-
3. An apparatus for processing a SOCKET, comprising a connection management application module and a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack module, wherein,
the connection management application module is configured to obtain a SOCKET identifier corresponding to each service application, and transmit the SOCKET identifier and a modification instruction to the TCP/IP protocol stack module; the TCP/IP protocol stack module is configured to search for SOCKET file description information corresponding to the SOCKET identifier, and modify the SOCKET file description information according to the modification instruction. - View Dependent Claims (4)
-
5. A method for transmitting packet data, comprising:
-
a connection management application obtaining a SOCKET created by each service application, searching for an IP address of a specified network link which corresponds to the service application, and transmitting the SOCKET identifier, the IP address and a link modification instruction to a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack; the TCP/IP protocol stack searching for the SOCKET file description information corresponding to the SOCKET identifier, and modifying a source IP address in the SOCKET file description information to the IP address of the specified network link according to the link modification instruction; and the TCP/IP protocol stack transmitting the packet data of the service application through the specified network link. - View Dependent Claims (6, 7)
-
-
8. An apparatus for transmitting packet data, comprising a connection management application module and a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack module, wherein,
the connection management application module is configured to obtain a SOCKET created by each service application, search for an IP address of a specified network link which corresponds to the service application, and transmit the SOCKET identifier, the IP address and a link modification instruction to the TCP/IP protocol stack; the TCP/IP protocol stack module is configured to search for SOCKET file description information corresponding to the SOCKET identifier, and modify a source IP address in the SOCKET file description information to the IP address of the specified network link according to the link modification instruction; and
transmit the packet data of the service application through the specified network link.- View Dependent Claims (9, 10)
Specification