摘要 |
A bi-directional data transmission method, suitable for an electronic device to exchange data with an external electronic device is provided. The bi-directional data transmission method may include but not limited to the step of: establishing a TCP connection with the external electronic device; buffering a first data stream in a transmitting buffer, wherein the first data stream comprises a plurality of data segments; transmitting the data segments of the first data stream sequentially through the TCP connection to the external electronic device; and determining whether a data request is generated, when the data request is generated, transmitting the data request through the TCP connection prior to any buffered data segment of the first data stream. |