×

Method for processing socket, method and apparatus for transmitting packet data

  • US 10,278,229 B2
  • Filed: 02/13/2012
  • Issued: 04/30/2019
  • Est. Priority Date: 06/29/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method for transmitting packet data in a plurality of co-existed network links by a terminal which comprises an operating system, comprising:

  • obtaining, by a connection management application module in a processor, a SOCKET identifier which is created for each service application of a plurality of service applications;

    for each service application of the plurality of service applications;

    prompting, by the connection management application module, a user to select a specified network link from all supported network links for the service application, andreceiving, by the connection management application module the specified network link selected by the user;

    for each specified network link;

    searching for, by the connection management application module, an IP address of the specified network link;

    transmitting, by the connection management application module, the SOCKET identifier of the service application corresponding to the specified network link, the IP address of the specified network link, and a link modification instruction to the TCP/IP protocol stack,finding, by the TCP/IP protocol stack, a SOCKET file description information of a process where the service application corresponding to the specified network link is located, according to the SOCKET identifier of the service application corresponding to the specified network link, wherein when the SOCKET file description information is not found in a current process, the SOCKET file description information is searched for on other processes by traversing all processes on the operating system, andmodifying an existing source IP address included in the SOCKET file description information into the IP address of the specified network link according to the link modification instruction for transmitting and receiving the packet data through the specified network link;

    transmitting and receiving, by the plurality of service applications, packet data on the specified network links for each of the plurality of service applications at the same time.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×