ydxt25 / etim Goto Github PK
View Code? Open in Web Editor NEWThis project forked from anpufeng/etim
简单的IM实现逻辑
This project forked from anpufeng/etim
简单的IM实现逻辑
一直想做个类似的IM功能, 看了一些学习视频, 查找资料,综合一下,就实现了个简单的 包括服务端和客户端 . 服务端CPP编写,目前是MAC上平台的工程,可以在LINUX下编写相应MAKEFILE编译 自己测试的是UBUNTU, 客户端是IOS的 现在只有一些简单的功能, 登录 注册 搜索添加好友, 简单会话 服务端编译运行 需要MYSQL 至于MAC下XCODE访问MYSQL可以自己网络解决. 主要就是安装后正确添加头及库的文件路径 etim.mwb 是mysql workbench的数据库模型 etim.sql是初始数据库脚本, 因为调试原因, 用户密码还未添加加密功能 . 由于移动网络的不稳定性, 移动端的收到消息确定性不适合目前的这种协议 , 需要改进。 目前只是一个基本的实现思路。 现在很多人喜欢研究XMPP,此工程是通过SOCKET定义一些简单的通讯协议来实现的。 启动 mysql 10.10 sudo /usr/local/mysql/bin/mysqld_safe mark 2015-05-14 目前服务端及客户端的地址已做成可配置的。 服务端需要将.conf放在与可执行文件同一目录 客户端在服务器设置页面 目前106.185.44.8是目前服务器程序的地址 目前正在运行, 可以尝试连接 因为在国外 可能速度相对来讲要差一些。 QQ交流群 459285821 有BUG可以联系[email protected] 服务端编译正确方法: 1:安装mysql, 确保编译符合mysql.h及mysql库文件的条件 2:创建自己的数据库, 将etim.sql文件导入此数据库中 初始化一些表结构 3:修改etim.conf文件 修改对应的服务器地址 [SERVER]下为服务器配置 默认localhost 8888端口, [DB]下为数据库配置 PORT:数据库端口 USER:数据库用户 PASS:数据库密码 NAME:数据库名 注意此文件要和编译成功后的可执行文件放同一目录下, MAC下可在Products->Show in Finder找到对应生成的可执行文件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.