Open the long-time source of instant communication

Source: Internet
Author: User

I've seen some recent research on IM that has turned the past upside down to study this research.

Communication protocol UDP, chat peer-to-peer

This project simply realizes the basic function of early QQ.

    1. Text chat
    2. Emoticons, Pictures sent
    3. Send offline messages, pictures
    4. Online/offline, file transfer
    5. Upload a custom Avatar
    6. Group function
    7. Voice, video Chat
    8. Weather forecast
    9. Custom tab
    10. Function

Theoretically the function is implemented, but there is a problem with NAT penetration, so peer sometimes can't succeed, so the outside network, just a toy

Client Run

The Technical network communication involved
    1. Message serialization, encryption
    2. Data transfer Protocol definition, message chunked sending, message integrity judgment and duplicate sending, SOKET5 proxy
    3. Nat Pierce, commonly known as punch hole
    4. Message Caching/Forwarding
Interface interaction
    1. Form interaction
    2. Interface Drawing
    3. Skin change
RTF Text Processing
    1. Font size Color Control
    2. RTF Picture Extraction Send

Compiled client, can connect to test server, need to register the account first

Http://119.10.29.11:8081/SinoTalk.rar

We don't understand. Welcome Message Discussion


Project description

Do not use this program for commercial purposes, in order to avoid unnecessary disputes, only for learning, reference
Development time 2010, more distant, there are many problems
Follow me on the new project CRL Rapid Development Framework
Http://www.cnblogs.com/hubro/p/4288047.html

The current project client compiles and runs to connect to the test environment server (which may then close)
Test server address http://119.10.29.11:8081/account registration
Project Division
Client clients
Comm Public Methods
Duoduo Startup program
Ipcchannelobj Service Console Communication object
Server Service Main Program
Sinotalkserverconsole Service Console
Sinotalkservice Service Program (in Parameter configuration Main program path)
Sinotalkweb website Interface (for the avoidance of disputes, not disclosed, please refer to the online example)
Update upgrade Program
ServerSetup Service installation program
Database (for avoidance of disputes, undisclosed)

The original version of this item is older. net2.0/3.5 Development test to adjust the build environment according to the actual situation

Port Address Change
Server port
sinotalk.comm.p2pconsts.server_udp_port=2280
Client server address Binding
Sinotalk.client.clientconsts._server_address= "119.10.29.11"

ActiveX Control Registration
Voice and video are ActiveX controls that need to be registered before they can be compiled by
The debug directory has a registration file
regsvr32 "Aocx2.ocx"
regsvr32 "Vocx.ocx"
regsvr32 "ImageOle.dll"

Project : Link: http://pan.baidu.com/s/1kTst3H9 (re-modified)

Open the long-sealed instant messaging source

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.