CN111404988A - Method and device for accessing internet server - Google Patents

Method and device for accessing internet server Download PDF

Info

Publication number
CN111404988A
CN111404988A CN202010091550.4A CN202010091550A CN111404988A CN 111404988 A CN111404988 A CN 111404988A CN 202010091550 A CN202010091550 A CN 202010091550A CN 111404988 A CN111404988 A CN 111404988A
Authority
CN
China
Prior art keywords
internet
data
terminal
access request
internet server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010091550.4A
Other languages
Chinese (zh)
Inventor
李海波
姜斌
袁占涛
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010091550.4A priority Critical patent/CN111404988A/en
Publication of CN111404988A publication Critical patent/CN111404988A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for accessing an internet server, wherein the method is applied to terminal equipment, a first video network virtual terminal is arranged on the terminal equipment, and the method comprises the following steps: acquiring an internet access request generated by a target application program on the terminal equipment; the Internet access request is encapsulated into Internet data by adopting an Internet protocol through the first Internet of vision virtual terminal; sending the video networking data to an internet server through the first video networking virtual terminal; the Internet server is provided with a second video networking virtual terminal; and receiving and displaying access data returned by the Internet server according to the video networking data. In the embodiment of the invention, the video network is adopted to transmit the access request from the terminal equipment to the internet server; therefore, the terminal equipment can access the internet server without connecting the internet.

Description

Method and device for accessing internet server
Technical Field
The invention relates to the technical field of video networking, in particular to a method and a device for accessing an internet server.
Background
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other. The video network adopts a two-layer private protocol to transmit data, so that the safety is greatly improved while the real-time transmission of the full-network high-definition video is realized.
However, most of the network devices are internet devices, and communication is realized based on the internet. For example, the geographic information scheduling system is a video command scheduling system, and after logging in an operation page of the system through the internet, services such as conferences, monitoring and the like on the system can be controlled.
However, electronic devices in some scenarios are not allowed to connect to the internet due to security concerns or enterprise requirements; thereby making the internet server inaccessible to these electronic devices.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a method and apparatus for accessing an internet server that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention discloses a method for accessing an internet server, which is applied to a terminal device, wherein a first virtual terminal of a video network is arranged on the terminal device, and the method includes:
acquiring an internet access request generated by a target application program on the terminal equipment;
the Internet access request is encapsulated into Internet data by adopting an Internet protocol through the first Internet of vision virtual terminal;
sending the video networking data to an internet server through the first video networking virtual terminal; the Internet server is provided with a second video networking virtual terminal;
and receiving and displaying access data returned by the Internet server according to the video networking data.
Optionally, the target application is a browser, and the step of obtaining an internet access request generated by the target application on the terminal device includes:
establishing a first connecting channel between the browser and a first socket communication unit which is established in advance;
and sending the internet access request generated by the browser to the first video network virtual terminal through the first socket communication unit through the first connecting channel.
Optionally, the target application is a browser, and the step of obtaining an internet access request generated by the target application on the terminal device includes:
sending the internet access request generated by the browser to the first video network virtual terminal through a pre-generated virtual network card; and the terminal equipment is configured with routing messages of the virtual network card and the browser.
In a second aspect, an embodiment of the present invention further discloses a method for accessing an internet server, which is applied to the internet server, wherein a first video network virtual terminal is arranged on the internet server, and the method includes:
receiving video networking data which is sent by terminal equipment and carries an internet access request through the first video networking virtual terminal; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal;
analyzing the video networking data through a video networking protocol to obtain the Internet access request;
acquiring access data according to the internet access request;
and sending the access data to the terminal equipment through the first video network virtual terminal so that the terminal equipment receives and displays the access data.
Optionally, a response unit for providing access data is arranged on the internet server;
the step of obtaining access data according to the internet access request comprises:
establishing a second connection channel between the response unit and a second socket communication unit which is created in advance;
and sending the internet access request to the response unit through the second connecting channel, so that the response unit sends the access data to the first video network virtual terminal through the second socket communication unit.
Optionally, a response unit for providing access data is arranged on the internet server;
the step of obtaining access data according to the internet access request comprises:
sending the internet access request to the response unit through a pre-generated virtual network card, so that the response unit sends the access data to the first video network virtual terminal through the virtual network card; and the Internet server is configured with routing messages of the virtual network card and the response unit.
In a third aspect, an embodiment of the present invention further discloses a device for accessing an internet server, which is applied to a terminal device, where the terminal device is provided with a first virtual terminal of a video network, and the device includes:
the request module is used for acquiring an internet access request generated by a target application program on the terminal equipment;
the packaging module is used for packaging the Internet access request into Internet data by adopting an Internet protocol;
the transmission module is used for transmitting the video networking data to an Internet server; the Internet server is provided with a second video networking virtual terminal;
and the display module is used for receiving and displaying the access data returned by the Internet server according to the video networking data.
Optionally, the target application is a browser, and the request module includes:
the first connection unit is used for establishing a first connection channel between the browser and a first socket communication unit which is established in advance;
and the first transmission unit is used for sending the internet access request generated by the browser to the first video network virtual terminal through the first socket communication unit through the first connecting channel.
Optionally, the target application is a browser, and the request module includes:
the first control unit is used for sending the internet access request generated by the browser to the first video network virtual terminal through a pre-generated virtual network card; and the terminal equipment is configured with routing messages of the virtual network card and the browser.
In a fourth aspect, an embodiment of the present invention further discloses an apparatus for accessing an internet server, which is applied to the internet server, wherein a first virtual terminal of a video network is arranged on the internet server, and the apparatus includes:
the receiving module is used for receiving video networking data which is sent by the terminal equipment and carries an Internet access request; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal;
the analysis module is used for analyzing the video networking data through a video networking protocol to obtain the Internet access request;
the access module is used for acquiring access data according to the internet access request;
and the return module is used for sending the access data to the terminal equipment so as to enable the terminal equipment to receive and display the access data.
Optionally, a response unit for providing access data is arranged on the internet server;
the access module includes:
the second connection unit is used for establishing a second connection channel between the response unit and a second socket communication unit which is created in advance;
and the second transmission unit is used for sending the internet access request to the response unit through the second connection channel so that the response unit sends the access data to the first video network virtual terminal through the second socket communication unit.
Optionally, a response unit for providing access data is arranged on the internet server;
the access module includes:
the second control unit is used for sending the internet access request to the response unit through a pre-generated virtual network card so that the response unit sends the access data to the first video network virtual terminal through the virtual network card; and the Internet server is configured with routing messages of the virtual network card and the response unit.
In a fifth aspect, an embodiment of the present invention further discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method of the first aspect or the second aspect is implemented.
In a sixth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program for executing the method in the first aspect or the second aspect is stored in the computer-readable storage medium.
The method for accessing the internet server provided by the embodiment of the invention is applied to terminal equipment, wherein the terminal equipment is provided with a first video networking virtual terminal, and the method comprises the following steps: acquiring an internet access request generated by a target application program on the terminal equipment; and packaging the Internet access request into Internet data by adopting an Internet protocol through the first Internet virtual terminal. The video networking data conforms to the video networking protocol, and the transmission of the Internet access request in the video networking can be realized. Sending the video networking data to an internet server through the first video networking virtual terminal; the Internet server is provided with a second video networking virtual terminal; and receiving and displaying access data returned by the Internet server according to the video networking data. After sending the internet access request to the internet server, access data returned by the internet server may be received. Therefore, the terminal equipment can access the internet server to obtain the data on the internet server without connecting the internet.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a method for accessing an internet server applied to a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of steps of a method for accessing an internet server, applied to the internet server according to an embodiment of the present invention;
FIG. 3 is a diagram of an application scenario architecture for a method of accessing an Internet server in accordance with an embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus for accessing an internet server, which is applied to a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an apparatus for accessing an internet server, which is applied to the internet server according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 shows a method for accessing an internet server according to an embodiment of the present invention, which is applied to a terminal device, where a first virtual terminal of a video network is disposed on the terminal device, and the method includes the following steps:
step 101, obtaining an internet access request generated by a target application program on a terminal device.
The terminal device is an electronic device with data processing and data operation functions, for example, the terminal device may be a computer, but is not limited thereto, the target program is an application program installed on the terminal device and capable of running on the terminal device, the Internet access request generated by the target application program is a request message conforming to TCP/IP (Transmission control Protocol/Internet Protocol), and preferably, the Internet access request is an HTTP (HyperText Transfer Protocol) request or an HTTPs (HyperText Transfer Protocol over secure Protocol L observer) request.
And 102, packaging the Internet access request into Internet data by adopting an Internet protocol through a first Internet virtual terminal.
It should be noted that the first virtual terminal supports the internet protocol, and may encapsulate data into internet data that can be transmitted in the internet and recognized by the internet device.
And 103, sending the video networking data to an internet server through the first video networking virtual terminal.
It should be noted that a second video network virtual terminal is provided on the internet server. Therefore, the terminal equipment and the internet equipment can transmit the video networking data through the first video networking virtual terminal and the second video networking virtual terminal without using the internet.
After the internet server receives the video networking data through the second video networking virtual terminal, the internet server can analyze the internet access request carried in the video networking data by adopting a video networking protocol. The internet server can directly recognize and process the HTTP request and the HTTPS request, so that corresponding access data are returned according to the HTTP request and the HTTPS request.
And 104, receiving and displaying access data returned by the Internet server according to the video networking data.
It should be noted that the access data is received by the first video network virtual terminal, and the access data is analyzed by adopting a video network protocol to obtain internet data which can be directly used and displayed by a target application program; and then the target application program displays the analyzed internet data on the terminal equipment.
In the embodiment of the invention, the method for accessing the internet server is applied to terminal equipment, the terminal equipment is provided with a first video network virtual terminal, and the method comprises the following steps: acquiring an internet access request generated by a target application program on terminal equipment; and packaging the Internet access request into Internet data by adopting an Internet protocol through the first Internet virtual terminal. The video networking data conforms to the video networking protocol, and the transmission of the Internet access request in the video networking can be realized. The method comprises the steps that video networking data are sent to an internet server through a first video networking virtual terminal; the Internet server is provided with a second video network virtual terminal; and receiving and displaying access data returned by the Internet server according to the video networking data. After sending the internet access request to the internet server, access data returned by the internet server may be received. Therefore, the terminal equipment can access the internet server to obtain the data on the internet server without connecting the internet.
In order to facilitate obtaining an internet access request generated by a target application program, on the basis of the above embodiment of the present invention, in the embodiment of the present invention, the target application program is a browser, and the step of obtaining the internet access request generated by the target application program on the terminal device includes:
establishing a first connecting channel between a browser and a pre-established first socket communication unit;
and sending the internet access request generated by the browser to the first video network virtual terminal through the first socket communication unit through the first connecting channel.
It should be noted that, the step of sending the internet access request generated by the browser to the first virtual terminal of the video network through the first socket communication unit via the first connection channel specifically includes:
and transmitting the internet access request generated by the browser to the first socket communication unit through the first connecting channel.
And sending the Internet access request received by the first socket communication unit to the first video network virtual terminal.
By using a socket communication technology, a browser is used as a socket client, and a socket server capable of monitoring an access request generated by the browser is created according to the browser. The socket server is the first socket communication unit. The browser can be a hundred-degree browser, a Firefox browser, and the like.
Preferably, a first proxy service can be set on the terminal device; wherein the first proxy service comprises: the system comprises a first socket communication unit and a first video network virtual terminal; and changing the destination addresses of all HTTP requests and all HTTPS requests of the browser into the IP address and the port number of the first socket communication unit. When the browser carries out HTTP requests and all HTTPS requests, the browser firstly accesses the first proxy service, and the HTTP requests and the HTTPS requests are packaged into data which accord with a video networking protocol through the first video networking virtual terminal by the first proxy service and then are sent to the Internet server. The first proxy service is realized in a software mode, hardware equipment does not need to be added, and the existing hardware equipment does not need to be changed.
Of course, the second proxy service may be provided on an internet server. The second proxy service can communicate with the internet server, and preferably, the second proxy service is matched with the first proxy service and sends the HTTP request and the HTTPS to the internet server; and sending the access data returned by the internet server to the first proxy service.
In order to facilitate obtaining an internet access request generated by a target application program, on the basis of the above embodiment of the present invention, in the embodiment of the present invention, the target application program is a browser, and the step of obtaining the internet access request generated by the target application program on the terminal device includes:
sending an internet access request generated by a browser to a first video network virtual terminal through a pre-generated virtual network card; the terminal equipment is configured with a routing message of a virtual network card and a browser.
It should be noted that the step of sending the internet access request generated by the browser to the first virtual terminal of the internet of view through the virtual network card generated in advance includes:
receiving an internet access request generated by a browser through a pre-generated virtual network card;
and sending the Internet access request received by the virtual network card to the first video networking virtual terminal.
The browser can send the internet access request to the virtual network card according to the routing message; and then the virtual network card transmits the Internet access request to the first video networking virtual terminal. The virtual network card intercepts the access request of the browser and can be realized by configuring routing messages. The virtual network card does not need to analyze the specific content of the internet access request; the internet access request may thus be a request message comprising an internet server IP address and port number. Preferably, the virtual network card is also deployed on the internet server side, so that the video network server can directly process the internet access request transmitted by the virtual network card.
As shown in fig. 2, according to another aspect of the present invention, there is provided a method for accessing an internet server, the method being applied to the internet server on which a first virtual terminal of a video network is disposed, the method including:
step 201, receiving, by a first video networking virtual terminal, video networking data carrying an internet access request sent by a terminal device.
It should be noted that the terminal device is provided with a second video networking virtual terminal, and the video networking data is sent by the terminal device through the second video networking virtual terminal. The terminal device is an electronic device with data processing and data operation functions, for example, the terminal device may be a computer, but is not limited thereto. The internet server is a server capable of processing internet access requests, and for example, may receive HTTP requests and HTTPs requests and return access data for request messages.
Step 202, analyzing the video networking data through the video networking protocol to obtain the internet access request.
It should be noted that the first virtual terminal supports the internet protocol, and may parse the internet data to obtain the internet access request.
Step 203, obtaining access data according to the internet access request.
It should be noted that the internet server stores a large amount of data thereon, and returns corresponding access data when receiving an access request.
And step 204, sending the access data to the terminal equipment through the first video network virtual terminal so that the terminal equipment receives and displays the access data.
It should be noted that the access data may be transmitted in reverse along the path from the terminal device to the internet server in accordance with the internet access request. The first video network virtual terminal encapsulates the access data by adopting a video network protocol and returns the encapsulated access data to the terminal equipment.
In the embodiment of the invention, the method for accessing the internet server is applied to the internet server, the internet server is provided with a first video network virtual terminal, and the method comprises the following steps: receiving video networking data which is sent by terminal equipment and carries an internet access request through a first video networking virtual terminal; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal. The video networking data conforms to the video networking protocol, and the transmission of the Internet access request in the video networking can be realized. Analyzing the video networking data through a video networking protocol to obtain an internet access request; acquiring access data according to the internet access request; and sending the access data to the terminal equipment through the first video networking virtual terminal so that the terminal equipment receives and displays the access data. The internet server can receive the internet access request transmitted by the terminal device through the video network and return the access data to the terminal device. Therefore, the terminal equipment can access the internet server to obtain the data on the internet server without connecting the internet.
On the basis of the above embodiments of the present invention, in the embodiments of the present invention, a response unit for providing access data is provided on the internet server;
the step of obtaining access data according to the internet access request comprises:
and sending the internet access request to the response unit through the second connection channel, so that the response unit sends the access data to the first video network virtual terminal through the second socket communication unit.
It should be noted that the step of sending the internet access request to the response unit through the second connection channel so that the response unit sends the access data to the first virtual terminal of the internet of view through the second socket communication unit includes:
sending the internet access request to a response unit through a second connection channel;
and acquiring the access data through the response unit, and sending the access data to the first video network virtual terminal.
By using the socket communication technology, a socket client is created, and a response unit for providing access data on the internet server is used as a socket server. Preferably, the second proxy service may be provided on an internet server. The second proxy service comprises a second socket communication unit and a first video networking virtual terminal; and setting configuration information, wherein the configuration information comprises the corresponding relation between the service address in the internet server and the service address of the proxy service at the terminal equipment. In this way, the second proxy service replaces the service address in the internet access request with the service address in the internet server according to the configuration information after receiving the internet access request. The internet server is ensured to return access data for the internet access request.
On the basis of the above embodiments of the present invention, in the embodiments of the present invention, a response unit for providing access data is provided on the internet server;
the step of obtaining access data according to the internet access request comprises:
the method comprises the steps that an internet access request is sent to a response unit through a pre-generated virtual network card, so that the response unit sends access data to a first video network virtual terminal through the virtual network card; the Internet server is provided with a routing message of the virtual network card and the response unit.
It should be noted that the step of sending the internet access request to the response unit through the pre-generated virtual network card so that the response unit sends the access data to the first video network virtual terminal through the virtual network card includes:
sending the internet access request to a response unit through a pre-generated virtual network card;
and acquiring the access data through the response unit, and sending the access data to the first video network virtual terminal.
The virtual network card can send the internet access request to the internet server according to the routing message, and then the internet server processes the internet access request according to the specific content of the internet access request. The virtual network card does not need to analyze the specific content of the internet access request; the internet access request is thus a request message comprising the internet server IP address and port number. In this way, after the response unit receives the internet access request sent by the virtual network card, the response unit can directly return the corresponding access data according to the specific content.
As shown in fig. 3, an application scenario architecture diagram of a method for accessing an internet server; the system comprises a browser, a first proxy service, a second proxy service and an Internet server (i.e. http server in the figure); the browser and the first proxy service are deployed on the terminal equipment, and the second proxy service is deployed on the Internet server; the first proxy service and the second proxy service are connected to the same video network through the video network virtual terminal. A socket server in the first proxy service is used to provide a socket service, communicating with a browser. A socket client in the second proxy service is used to provide a socket service, communicating with the internet server.
The address of the internet server is 192.168.1.6, and the port number is 8080; the address of the socket service in the first proxy service is 127.0.0.1, and the port number is 5678. The user inputs HTTP://127.0.0.1:5678/gis in the browser, so that the socket service of the first proxy service can be started, and the HTTP request generated by the browser is sent to the first proxy service. The first proxy service encapsulates the HTTP request into video networking data through the video networking virtual terminal, and sends the video networking data to the virtual terminal of the second proxy service through the video networking. The virtual terminal of the second proxy service analyzes the video networking data and replaces a target IP and a port number in the HTTP request with the address and the port number of the Internet server according to the configuration information, so that a new HTTP request is generated, namely HTTP://192.168.1.6: 8080/gis; and then the socket service in the second proxy service sends the new HTTP request to the Internet server, so as to obtain the access data, and the access data is returned according to the original route. The browser disconnects the socket connection with the first proxy service after the end of one HTTP request. The process that the terminal equipment accesses the internet server through the browser is completed in the video networking environment, and the internet is not needed.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 4 shows an apparatus for accessing an internet server according to another embodiment of the present invention, which is applied to a terminal device, where a first virtual terminal of a video network is disposed on the terminal device, and the apparatus includes:
a request module 41, configured to obtain an internet access request generated by a target application on a terminal device;
an encapsulation module 42, configured to encapsulate the internet access request into internet data using an internet protocol;
a transmission module 43, configured to send the video networking data to an internet server; the Internet server is provided with a second video network virtual terminal;
and the display module 44 is used for receiving and displaying the access data returned by the internet server according to the video networking data.
Optionally, the target application is a browser, and the request module 41 includes:
the first connection unit is used for establishing a first connection channel between the browser and a first socket communication unit which is established in advance;
and the first transmission unit is used for transmitting the Internet access request generated by the browser to the first video network virtual terminal through the first socket communication unit through the first connecting channel.
Optionally, the target application is a browser, and the request module 41 includes:
the first control unit is used for sending the internet access request generated by the browser to the first video network virtual terminal through a pre-generated virtual network card; the terminal equipment is configured with a routing message of a virtual network card and a browser.
In the embodiment of the invention, an internet access request generated by a target application program on terminal equipment is acquired; and packaging the Internet access request into Internet data by adopting an Internet protocol through the first Internet virtual terminal. The video networking data conforms to the video networking protocol, and the transmission of the Internet access request in the video networking can be realized. The method comprises the steps that video networking data are sent to an internet server through a first video networking virtual terminal; the Internet server is provided with a second video network virtual terminal; and receiving and displaying access data returned by the Internet server according to the video networking data. After sending the internet access request to the internet server, access data returned by the internet server may be received. Therefore, the terminal equipment can access the internet server to obtain the data on the internet server without connecting the internet.
Fig. 5 shows an apparatus for accessing an internet server according to another embodiment of the present invention, which is applied to an internet server on which a first virtual terminal is disposed, and the apparatus includes:
the receiving module 51 is configured to receive video networking data which is sent by a terminal device and carries an internet access request; the terminal equipment is provided with a second video network virtual terminal, and video network data are sent by the terminal equipment through the second video network virtual terminal;
the analysis module 52 is used for analyzing the video networking data through the video networking protocol to obtain an internet access request;
an access module 53, configured to obtain access data according to an internet access request;
and a returning module 54, configured to send the access data to the terminal device, so that the terminal device receives and displays the access data.
Optionally, a response unit for providing access data is arranged on the internet server;
the access module 53 includes:
the second connection unit is used for establishing a second connection channel between the response unit and a second socket communication unit which is established in advance;
and the second transmission unit is used for sending the internet access request to the response unit through the second connection channel so that the response unit sends the access data to the first video network virtual terminal through the second socket communication unit.
Optionally, a response unit for providing access data is arranged on the internet server;
the access module 53 includes:
the second control unit is used for sending the internet access request to the response unit through the pre-generated virtual network card so that the response unit sends the access data to the first video network virtual terminal through the virtual network card; the Internet server is provided with a routing message of the virtual network card and the response unit.
In the embodiment of the invention, video networking data which is sent by terminal equipment and carries an internet access request is received through a first video networking virtual terminal; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal. The video networking data conforms to the video networking protocol, and the transmission of the Internet access request in the video networking can be realized. Analyzing the video networking data through a video networking protocol to obtain an internet access request; acquiring access data according to the internet access request; and sending the access data to the terminal equipment through the first video networking virtual terminal so that the terminal equipment receives and displays the access data. The internet server can receive the internet access request transmitted by the terminal device through the video network and return the access data to the terminal device. Therefore, the terminal equipment can access the internet server to obtain the data on the internet server without connecting the internet.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention also discloses electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the method for accessing the internet server in any embodiment is realized.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for executing the method for accessing the internet server, which is implemented by any embodiment of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

Claims (10)

1. A method for accessing an Internet server is applied to a terminal device, a first video networking virtual terminal is arranged on the terminal device, and the method comprises the following steps:
acquiring an internet access request generated by a target application program on the terminal equipment;
the Internet access request is encapsulated into Internet data by adopting an Internet protocol through the first Internet of vision virtual terminal;
sending the video networking data to an internet server through the first video networking virtual terminal; the Internet server is provided with a second video networking virtual terminal;
and receiving and displaying access data returned by the Internet server according to the video networking data.
2. The method of claim 1, wherein the target application is a browser, and the step of obtaining the internet access request generated by the target application on the terminal device comprises:
establishing a first connecting channel between the browser and a first socket communication unit which is established in advance;
and sending the internet access request generated by the browser to the first video network virtual terminal through the first socket communication unit through the first connecting channel.
3. The method of claim 1, wherein the target application is a browser, and the step of obtaining the internet access request generated by the target application on the terminal device comprises:
sending the internet access request generated by the browser to the first video network virtual terminal through a pre-generated virtual network card; and the terminal equipment is configured with routing messages of the virtual network card and the browser.
4. A method for accessing an Internet server is applied to the Internet server, a first video networking virtual terminal is arranged on the Internet server, and the method comprises the following steps:
receiving video networking data which is sent by terminal equipment and carries an internet access request through the first video networking virtual terminal; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal;
analyzing the video networking data through a video networking protocol to obtain the Internet access request;
acquiring access data according to the internet access request;
and sending the access data to the terminal equipment through the first video network virtual terminal so that the terminal equipment receives and displays the access data.
5. The method of claim 4, wherein the internet server is provided with a response unit for providing access data;
the step of obtaining access data according to the internet access request comprises:
establishing a second connection channel between the response unit and a second socket communication unit which is created in advance;
and sending the internet access request to the response unit through the second connecting channel, so that the response unit sends the access data to the first video network virtual terminal through the second socket communication unit.
6. The method of claim 4, wherein the internet server is provided with a response unit for providing access data;
the step of obtaining access data according to the internet access request comprises:
sending the internet access request to the response unit through a pre-generated virtual network card, so that the response unit sends the access data to the first video network virtual terminal through the virtual network card; and the Internet server is configured with routing messages of the virtual network card and the response unit.
7. The utility model provides an apparatus for visiting internet server which characterized in that is applied to terminal equipment, be provided with first visual networking virtual terminal on the terminal equipment, the apparatus includes:
the request module is used for acquiring an internet access request generated by a target application program on the terminal equipment;
the packaging module is used for packaging the Internet access request into Internet data by adopting an Internet protocol;
the transmission module is used for transmitting the video networking data to an Internet server; the Internet server is provided with a second video networking virtual terminal;
and the display module is used for receiving and displaying the access data returned by the Internet server according to the video networking data.
8. An apparatus for accessing an internet server, the apparatus being applied to the internet server, the internet server being provided with a first virtual terminal for video networking, the apparatus comprising:
the receiving module is used for receiving video networking data which is sent by the terminal equipment and carries an Internet access request; the terminal equipment is provided with a second video network virtual terminal, and the video network data is sent by the terminal equipment through the second video network virtual terminal;
the analysis module is used for analyzing the video networking data through a video networking protocol to obtain the Internet access request;
the access module is used for acquiring access data according to the internet access request;
and the return module is used for sending the access data to the terminal equipment so as to enable the terminal equipment to receive and display the access data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method of accessing an internet server as claimed in any one of claims 1 to 3 or a method of accessing an internet server as claimed in any one of claims 4 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program for executing the method for accessing an internet server according to any one of claims 1 to 3 or the method for accessing an internet server according to any one of claims 4 to 6.
CN202010091550.4A 2020-02-13 2020-02-13 Method and device for accessing internet server Pending CN111404988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091550.4A CN111404988A (en) 2020-02-13 2020-02-13 Method and device for accessing internet server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091550.4A CN111404988A (en) 2020-02-13 2020-02-13 Method and device for accessing internet server

Publications (1)

Publication Number Publication Date
CN111404988A true CN111404988A (en) 2020-07-10

Family

ID=71428394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091550.4A Pending CN111404988A (en) 2020-02-13 2020-02-13 Method and device for accessing internet server

Country Status (1)

Country Link
CN (1) CN111404988A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273186A (en) * 2017-06-28 2017-10-20 深信服科技股份有限公司 Access method, physical host and the virtual machine of virtual machine server
CN108965223A (en) * 2017-12-12 2018-12-07 北京视联动力国际信息技术有限公司 It is a kind of based on view networking web page processing method, proxy server and view networked terminals
US20190138324A1 (en) * 2017-11-09 2019-05-09 Vmware, Inc. Network Isolation in Virtual Desktop Infrastructure
CN109873817A (en) * 2019-01-31 2019-06-11 视联动力信息技术股份有限公司 A kind of method and apparatus of one-to-one access network
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110457619A (en) * 2019-08-15 2019-11-15 中国工商银行股份有限公司 Browser information transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273186A (en) * 2017-06-28 2017-10-20 深信服科技股份有限公司 Access method, physical host and the virtual machine of virtual machine server
US20190138324A1 (en) * 2017-11-09 2019-05-09 Vmware, Inc. Network Isolation in Virtual Desktop Infrastructure
CN108965223A (en) * 2017-12-12 2018-12-07 北京视联动力国际信息技术有限公司 It is a kind of based on view networking web page processing method, proxy server and view networked terminals
CN109873817A (en) * 2019-01-31 2019-06-11 视联动力信息技术股份有限公司 A kind of method and apparatus of one-to-one access network
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110457619A (en) * 2019-08-15 2019-11-15 中国工商银行股份有限公司 Browser information transmission method and device

Similar Documents

Publication Publication Date Title
CN105337961B (en) The method and server communicated with client
CN106603565A (en) Data transmission and display method and equipment thereof
CN108270882A (en) The analysis method and device of domain name, storage medium, electronic device
EP3087502B1 (en) Transmitting and displaying screen content
CN110769009B (en) User identity authentication method and system
CN109586962A (en) IPv4 is upgraded to processing unit, method and the electronic equipment of the HTTPS exterior chain problem of IPv6
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
WO2016018342A1 (en) Remote session information based on process identifier
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
CN105556918B (en) A kind of resource downloading method and electronic equipment
CN105530137A (en) Traffic data analysis method and traffic data analysis system
US20130226984A1 (en) Method and apparatus of providing optimized web browser communications
CN117336035A (en) Management coordination method of side equipment based on gateway of Internet of things
CN116915827A (en) Data transmission method and device of internet of things edge gateway, electronic equipment and medium
CN111600883A (en) Vehicle diagnosis method and system, electronic equipment and storage medium
CN111404988A (en) Method and device for accessing internet server
CN114915565A (en) Method and system for debugging network
CN113411371B (en) Communication method and device applied to vehicle, electronic equipment and vehicle
CN114186104A (en) Method, system and server for recording, storing and querying protocol data
CN114390095A (en) Remote equipment control method and Internet of things equipment management platform and system
US10491654B2 (en) Communicating with a remote service through a hypertext transfer protocol (HTTP) session
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
Ocak Implementation of an internet of things device management interface
CN112039749A (en) Node js-based Internet of things equipment management method, system and storage medium
CN114827197B (en) Service communication method, device, equipment and medium based on Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination