Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» 软件的同步自动升级问题
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 软件的同步自动升级问题
linio
新警察
UID 7020
Digest Posts 0
Credits 5
Posts 3
点点分 5
Reading Access 10
Registered 2007-3-9
Location 浙江台州
Status Offline
#1
Post at 2007-3-23 11:36
Profile
|
Blog
|
P.M.
|
软件的同步自动升级问题
描述:
我用TClientSocket和TServerSocket做了一个软件的自动升级,是C/S模式的,当S端打开时,运行C端可以检测是否需要升级,但同一时间只能升级一个客户端程序,当有两台机器或以上申请升级的时候,原来已经在升级的事件就会被中断,导致升级失败。
求教:
如何实现多台客户机同步升级?我的想法是服务器上每接收到一个客户端的升级请求便创建一个单独的线程与之交互,这样,各个客户机升级时可以互不干涉。可我却不知道怎么样把TClientSocket的OnRead事件加入到线程当中。各位知道怎么解决的,请不吝赐教。如果有更好的办法实现多台机器同步升级,也请告之小弟,谢谢啦!
注:我是初次接触多线程同步处理的问题,请朋友们不吝赐教
zzzl
(早安的空气)
版主
UID 590
Digest Posts 0
Credits 399
Posts 199
点点分 399
Reading Access 100
Registered 2004-11-29
Status Offline
#2
Post at 2007-3-24 17:50
Profile
|
Blog
|
P.M.
|
indy,会自动创建线程的
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 12:04
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007947 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats