Comments (5)
不好意思应该为父连接和子连接。这两个一直没看明白是什��
�意思。
Original comment by [email protected]
on 8 May 2012 at 11:29
from baserver.
父连接和子连接主要用于需多级访问的服务器,如果服务器��
�要访问另一个服务器,这时候实际上有两重角色,同时为服�
��器端和客户端,父子连接就是用来在这两种连接之间交换数
据的机制。
Original comment by [email protected]
on 8 May 2012 at 4:50
from baserver.
谢谢。也就是说,如果服务器本身既作为服务器端又作为客��
�端,并且服务器端和客户端之间需要进行数据交换时才需要�
��用,对吗?如果服务器本身既作为服务器端又作为客户端,
但服务器端只负责接收数据,客户端只负责发送数据,二者��
�间没有数据的交换,那么也不需要实现父、子连接,对吗?
另:使用BAS进行文件传输可以吗?尤其当文件比较大时,效��
�会怎样?需不需要使用一些特殊的处理方式?比如,内存映�
��文件?
Original comment by [email protected]
on 9 May 2012 at 6:58
from baserver.
如果使用使用内存映射文件进行文件传输,那么BAS里提供的IO
_buffer还需要使用吗?
BAS使用半同步/半异步方式,如果采用这种方式进行文件传输�
��在工作层会不会造成线程大量切换?比如,有200个并发传输
,工作层的代码使用同步,但还需要实时显示传输的进度、��
�率等(如QQ传输文件),那么需要有200个线程在负责这一块��
�作,此时会不会造成线程大量切换,耗费系统资源?
Original comment by [email protected]
on 9 May 2012 at 7:10
from baserver.
父子连接可视需要使用,并不是必须的,可参见echo_server的例
子。
bas主要设计用于处理复杂业务逻辑的应用服务器用途,追求��
�率并不时他的首要目标,而是通过由框架管理所有I/O,突出�
��务逻辑的独立性和完整性,建立稳定的、可扩展、可移植的
构架。
至于将bas用于文件传输及界面处理用途,应该是ok的,但效率
显然比不上专门设计的代码。
Original comment by [email protected]
on 10 May 2012 at 12:30
from baserver.
Related Issues (20)
- [deleted issue]
- [deleted issue]
- service_handler内存管理问题 HOT 3
- [deleted issue]
- 测试echo程序发现大量的time-wait连接,为什么 HOT 1
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- 关于baserver使用询问
- 最大连接数
- 半同步/半异步的一个疑问
- gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) 编译出错
- 有点问题
- 有点问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baserver.