德斯软件资讯2月8日消息,基于socket的企业管理软件im。
简介:
1.软件采用C/S的形式,服务器端采用基于。NET控制台,客户端是基于。NET WPF,数据库使用SQL Server。
2.在通信方面,采用TCP协议实现信息传输,通信基于服务器转发。用户注册和密码管理基于B/S(ASP。网)。
3.二次完成用户注册、用户密码修改、添加好友和删除好友;短信转发(字体支持)、抖音表单、发送照片(GIF支持,但问题严重)
服务器流程图:客户端流程图:
完成:
发送短信
通过服务器转发发送。先将音频通过相应的协议包发送到服务器,再由服务器转发到指定的客户端。该协议如下:
接受号字体音频头#字体字体样式(包括颜色、大小、样式等。)音频内容。
服务器接受后,根据好友号查找服务器端用户列表(如服务器任务流所示)获取Socket实例,好友在线则发送信息。
接收器接收信息的当前分割数据,设置字体并显示音频内容。
发送照片
这种形式存在严重的疑问。因为任务期间没有更新过,有兴趣的可以自己修正。最好不要使用服务器转发的形式,而是间接建立到客户端的P2P链接。
也是服务器转发的(我知道经历过的人看到这样发照片一定会给我拍照),约定如下:
验收编号照片音频标题#图片照片尺寸
这里就不说怎么收尾了,就是个鸡肋。
3.发送搅拌表格
很容易完成振动形式。只是按照一定的规则改变表单的状态。协议如下:
音频标题接受号
服务器接收该音频当前获取的音频头,查找用户列表获取Socket实例,如果好友在线则发送信息。
接收端接收这个音频,即进行抖音操作,代码如下:
//////执行抖音形式////Public Static Void抖音窗口(win _ talking talk Window){ if(talk Window。窗口状态= =窗口状态。最小化){通话窗口。窗口状态=窗口状态。正常;} int shake = 0;double OriginalLeft = talkWindow。左;双源Top = talkWindow。顶;double new left one = original left-2;double new left two = original left+2;double newtone = original top-2;double newTopTwo = original top+2;莎士比亚戏剧。play();while (shake < 5) { talkWindow。Left = newLeftOne谈话窗口。Top = newTopOne线程。睡眠(50);谈话窗口。Left = newLeftTwo谈话窗口。Top = newTopTwo线程。睡眠(50);摇++;} talkWindow。Left = OriginalLeft谈话窗口。Top = OriginalTop}
添加朋友
协议如下:
在音频标题中添加朋友号码
服务器接受当前音频,查找号码,如果有,将朋友添加到朋友列表,并向用户添加成功的音频。
如果添加自己为好友或者好友已经存在,转到失败消息。
协议和加好友相反。当服务器接受此音频后,会从发送此音频的用户好友列表中删除要删除的号码,转到音频操作。
6.注册和用户密码操作
注册形式为B/S,语言为VB.NET。你一定很奇怪。因为之前VB.NET也做过类似的项目,因为懒所以被间接利用了。这里就不讨论如何完成了,这是一个非常容易的WEB制造。我会在前面讲如何配置,间接看到上图:
源代码包括服务器和客户端两个文件夹,注册的网站和数据库都包含在服务器文件夹中。目录结构如下:
注册页面:IM\Server\WebChat
数据库:IM\Server\Data
1.数据库配置
使用SQL Server 2005或更高版本间接连接,并确保可以通过系统Windows身份验证登录。因为服务器是这样链接到数据库的,所以数据库设计特别糟糕。让我们大胆一试。
2.注册网站配置
将webchat添加到IIS管理器并配置本地IP地址。因为在登录表单中注册了一个新号码,所以您使用服务器IP地址访问网站。
在im \ server \ webchat \ app _ code \ connection data . VB中修改数据库链接。
3.客户端配置
当服务器运行时,它将显示它正在监听的IP地址,并且在客户机上有一个IpAddress.xml配置文件,它位于以下目录中:
IM \ Client \ Client \ bin \ Debug \ Config \ IP address . XML
只需打开当前更改为在服务器上运行的IP地址。
总结:
今天就分享到这里吧,德斯软件资讯是一个软件分享基地,其中包括微信,红包辅助,淘米购,叮咚盲盒,享乐好物,酒友购,支付宝,淘盟铺,惠易购,青蛙易购,香蕉赶集,乐享购,亲聊,探聊,诚智通,伶信,QQ,新易选,点约,淘客购,易民购,梦幻盲盒,淘个购,旗语,优品铺,赞聊,苹果微信多开,微信分身,安卓微信多开,创信等社交平台的功能有避雷,埋雷软件,单透,扫尾,秒抢等一些红包强项外挂功能软件分享。喜欢的请关注收藏,谢谢。