[Original] simple wireless file transfer within the LAN (1)

Source: Internet
Author: User

Before the beginning of the text, I want to complain. Recently, the project on hand is too tight, so the C ++ series has not been updated for a long time. Please forgive me. after the project is completed, there will certainly be more updates. Of course, there will also be messages sent to my friends. Thank you for your attention. I will certainly reply to you on March 13, May 1 ~ Thanks again!

Body start:

I. background:

In this era, the popularity of WiFi devices is spreading across the society at a fast speed, such as mobile phones, laptops, game consoles, PSP, etc ...... It seems like you want to get a nationwide wifi! Therefore, it is foreseeable that WiFi will be a good platform for short-distance and large-traffic applications in the future.

I still remember that not long ago, I went to the customer to do a requirement investigation, and the notebook used for work was directly added to the customer's wireless LAN, but it was not convenient to walk around with the notebook, so, I used PPC for various records and surveys. Of course, sometimes I put some client visiting problems on PPC to avoid forgetting. The file synchronization process between PPC and PC is quite painful. After all, it is a wired connection. I am wondering if I can directly send the information collected on PPC to PC, when I was downstairs, I could get files from the information shared by my PC to PPC, so I didn't have to go upstairs (the customer had several layers ). As a result, this wireless file transfer solution gradually took shape in my mind.

 

Ii. solution introduction:

This solution mainly solves the problem of convenient and fast file exchange between two devices (desktops and smart phones) in the wireless LAN. Therefore, we can see that this solution has two notable features: convenient and fast!

First, let's talk about convenience. I have also studied how to share files between PPC and PC over a Wi-Fi LAN. Although the process is similar to sharing files between PCs, many settings are required, for example, to add a trusted user, specify that the user is a visitor to these files ...... Ah, I finally did it again, and finally failed due to character issues!

Therefore, we need to make it easy for users to perform some simple operations on the files they want to exchange and share, so that "Others" can see and obtain the files on the LAN!

Second, quick. In fact, it is fast transmission. Generally, the files used on mobile phones are not very large in size. Therefore, this is easy to achieve. We will not discuss it in depth here.

Here, let's look at the technical aspects of the solution.

The first technical solution that comes into my mind is point-to-point communication. For example, TCP or UDP. Maybe I am familiar with these two technologies. Of course, there is also a set of synchronization components that are familiar with sync Microsoft. It looks good! However, because I only want to transmit files, I chose the previous method!

The technical solution determines what business functions we need to use. I think the best explanation is the image. So I went to Visio, and the general business scenario was as follows:

 

My PC shares some files. I can access these shared files with PPC via wifi, and then obtain the PPC as needed. Of course, I can also send the files on PPC to my PC!

From the above business scenarios, the functions to be completed by our system are clear:

    1. Establish a connection between devices
    2. You can use PPC to select a local/remote file for upload/download.
    3. Complete data transmission between devices (get the file list, transfer the file itself ......)
    4. Capture exceptions and return status results
    5. Disconnect Devices

Okay, so far, it seems that our entire system function has just surfaced. In the next articleArticleTo discuss the detailed system function structure and other issues, so stay tuned. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.