Network Programming exercises

Source: Internet
Author: User
Tags password protection

(1) Compile and run the Jabberserver and Jabberclient programs in this chapter. Then edit the program, delete all the buffering mechanisms for the input and output design, and then compile and run again to see the results.
(2) Create a server, use it to request a user to enter a password, then open a file and send the file over a network connection. Create a client that is connected to the server, assign it the appropriate password, and then capture and save the file. Test these two programs on your own machine using localhost (generate local IP address 127.0.0.1 by calling inetaddress.getbyname (null)).
(3) Modify the program in Exercise 2 to make it control multiple customers with multithreading mechanism.
(4) Modify jabberclient, prohibit output refresh, and observe the results.
(5) based on the Showhtml.java, create a piece of the program, make it a specific part of their Web site password protection of the door.
(6) (may be somewhat difficult) create a pair of client/server programs that use datagrams (Datagram) to upload a file from one machine to another (see the description at the end of this chapter of the datagram section).
(7) (may have some difficulty) to make some changes to the Vlookup.java program, so that we can click on the resulting name, and then the program will automatically get that name, and copy it to the Clipboard (so we easily paste to our own e-mail). You might want to go back to the chapter on IO Data flow and remember how to use the Java 1.1 Clipboard.

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.