CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 系统编程 Linux/Unix编程

文件名称:myATM

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-07-01
  • 文件大小:
    8.45kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

1.启动服务器时创建两个消息队列,关闭时进行删除。用信号关闭,在信号的处理函数中删除消息队列。

2.服务端根据客户端发过来的数据,判断是何种请求,再根据各种请求做出相应的处理。

3.分析开户的流程:客户端输入用户名,密码和金额,把数据封存在msg中,通过消息队列发给服务器,在服务器端生成一个帐号,然后把account信息写入文件,并把处理结果通过消息队列返回给客户端。

4.服务器端用多进程完成各种功能。(vfork+execl)

通过跳转到另一个可执行程序,来实现各种业务功能。



客户端的代码:

  1.提供选择界面,打印各种功能选择,供客户进行选择。

  2.拿到客户请求之后,向消息队列中提交相应的数据(用struct msg做载体),并等待服务器端的处理结果。

  

-1 Create two message queues when you start the server, delete closed. Signal off, delete the message queue handler signals.

2 based on the client server data sent over to determine what kind of request, and then make the appropriate treatment according to various requests.

3 analysis accounts for process: the client to enter a user name, password, and the amount of data archived in msg, sent to the server through the message queue, to generate an account on the server side, and then written to the file account information and the processing results through the message queue is returned to the client.

4 server to complete a variety of functions with multiple processes. (vfork+ execl)

Jump to another via an executable program, to achieve a variety of business functions.



Client code:

1 selection interface provides print various functional options for customers to choose.

2 to get the client request, the message queue corresponding to the submitted data (struct msg used as
(系统自动生成,下载前可以参看下载内容)

下载文件列表

myATM/100000.dat
myATM/100001.dat
myATM/ATM.txt
myATM/bank.c
myATM/bank.h
myATM/client.c
myATM/dao.c
myATM/dao.c.bak
myATM/dao.h
myATM/id.dat
myATM/link.txt
myATM/open.c
myATM/server.c
myATM/server.c.bak
myATM

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com