ACE学习笔记:ACE Socket

  i don't remember where get these words that:"it is easy to reuse others code with c++,but hard to ensure the reusiblility for your own code with c++",that is nothing but trusim,if you want to ensure the reusablity,you should at least have a throught view of the problem space and design model for the problem related,which is abstractly hard,aside from experience,art of design takes a big role.
  if you want to 'touch  ' this kind of art,here i recommend you to try ACE,which is really charming
  so,here is the point:
   the author refracted the socket and encapulated socket api based the role it takes during one communication,in fact ,if you have erver ananlysed some link control protocol,all these will not be problem for you:
   (1)negative acceptor,which is a socket factory
   (2)passive connector,the concept itself is easy to pick up,but hard to implement.here the author did it based on generic feature supported by c++
   (3)stream,this part is just to respond to receiving and sending of data,nothing to do with the establishing of connection or some other parts
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值