A time ago in Java did a non-blocking imitation of the autumn chat program

Source: Internet
Author: User

Use swing layout nio non-blocking imitation flying Autumn chat program, switch skin color what small function after slowly do

Start the main program. When the user opens the main program to automatically obtain LAN segment IP can be set-up IP segment filtering, have JMF video chat function (get video stream read to Bytebuffer and then write Datagramchannel), in fact, what functions are can add the late, simple introduction under

Double-click the user to chat (the first version is a channel-based operation, non-blocking, this version is block-type)

Automatically open a thread to process client requests and accept data when a message is sent, and prompt for new messages on the header

The client receives the data returned by the server and prompts for a new message on the header, indicating that the other party is entering the function if it is entering a title

Demo: http://v.youku.com/v_show/id_XMTI1MjcxMTY2NA==.html?firsttime=0&from=y1.4-2

A time ago in Java did a non-blocking imitation of the autumn chat program

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.