If you are using the Socket control and are finding that it's not
sending
out data as fast as you'd like, you can improve its performance. The
Socket
is using what processing time your application gets from the machine to
send
and receive data. So to improve the performance, you need your
application
to get more CPU time.
This can be accomplished easily by adding a Timer control to the same
window
that also contains your Socket control. Set the Timer Mode property to
"2 -
Multiple". The act of the Timer executing its Action event will cause
your
application to get more CPU time. Since the Timer isn't using this
time, it
will instead be used by your Socket control. Reducing the value of the
Period property of the Timer will give your Socket even more time (and
will
cause your Socket to send data more quickly) but will also cause your
application to use more of the CPU time which means less time for other
applications.
Thanks to Mike Bailey and Dave Grogono for providing this tip.
--
Geoff Perlman
President & CEO
REAL Software, Inc.
http://www.realsoftware.com
mailto:geoff at realsoftware dot com
Phone: 512-263-1233 x711
Fax: 512-263-1441
- - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
To unsubscribe from the Tips list, send an email to
<mailto:realbasic-tips-off at lists dot realsoftware dot com>
|