Click here to Skip to main content
15,908,841 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert .pwi to image? Pin
leppie15-Aug-04 19:33
leppie15-Aug-04 19:33 
GeneralRe: convert .pwi to image? Pin
khchan15-Aug-04 20:58
khchan15-Aug-04 20:58 
GeneralRe: convert .pwi to image? Pin
leppie15-Aug-04 21:22
leppie15-Aug-04 21:22 
GeneralA CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 15:41
Danny Rodriguez15-Aug-04 15:41 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Brad Bruce15-Aug-04 16:13
Brad Bruce15-Aug-04 16:13 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 16:14
Danny Rodriguez15-Aug-04 16:14 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
leppie15-Aug-04 19:40
leppie15-Aug-04 19:40 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 20:19
Danny Rodriguez15-Aug-04 20:19 
leppie wrote:
Some how I dont think the .NET threadpool is gonna cut that



Well instead of using thread pools manually im using them by means of asynchronous communication. to my understand - when communicating asynchronously with sockets (i.e. BeginConnect EndConnect etc etc ) these mechanisms use threadpooling in the background.

Now it all depends on how you use these mechanism. For example - my first attempts maxed out the thread pools and i was only able to do 25 connections and blah - it got stuck there. I was able to by pass this with creating only 1 object that would do the main communication. Originally i had created an object which handled the entire connection including buffer / socket as well as the async parts. but for some nutty reason - this method did not prove to work - possible because garbage colleciton - although it was manually called - would not collect the lingering objects which were ready for collection..


leppie wrote:
- socket buffersizes and timeouts, by default they will wait for ever...

when it comes to this - during asynchronous communications the appropriate exceptions are thrown informing you of these.


leppie wrote:
- Linger options
- Socket options (god knows what they all do....)


well alas you have me at this one. right now im not using any socket options - since it seems to be working quite well without them..

ending comments...

i took the first suggestion and implemented a random wait interval between each connection to each server. this proved to work perfectly - since that post the application has gone through 4000 servers and its still going - which is by far - further than its gone before. i simply put in a random interval between 1 and 30 seconds. although its a trade off for now - in time - the production system wont have these restrictions (i.e. flood control or worm detection whatever they call it )


Again thanks all for the advice and comments.

Also - any more suggestions?



p.s. a word on asynchronous sockets...

ive test various methods of socket communication - async, sycn, manual thread pooling, custom threading... everything.. ive been able to achieve equal results if not better with the manual threading in comparison to asyhc mechanisms - but it was far trickier to achieve.


has anyone implemented a server app - web server? ftp server? irc serveR? anything with async sockets in c#? just curious about your results..

Danny!
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 21:02
Danny Rodriguez15-Aug-04 21:02 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
leppie15-Aug-04 21:19
leppie15-Aug-04 21:19 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez16-Aug-04 16:09
Danny Rodriguez16-Aug-04 16:09 
GeneralWanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
Bompus15-Aug-04 15:03
Bompus15-Aug-04 15:03 
GeneralRe: Wanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
leppie15-Aug-04 19:43
leppie15-Aug-04 19:43 
GeneralRe: Wanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
yetanotherchris17-Aug-04 5:45
yetanotherchris17-Aug-04 5:45 
GeneralControl of database entry Pin
tzewei15-Aug-04 14:37
tzewei15-Aug-04 14:37 
GeneralRe: Control of database entry Pin
S Sansanwal15-Aug-04 16:47
S Sansanwal15-Aug-04 16:47 
Generalshowing dataset progress Pin
slundstrom15-Aug-04 13:52
slundstrom15-Aug-04 13:52 
GeneralRe: showing dataset progress Pin
Dave Kreskowiak15-Aug-04 15:49
mveDave Kreskowiak15-Aug-04 15:49 
Generalowner drawn listview Pin
yetanotherchris15-Aug-04 12:08
yetanotherchris15-Aug-04 12:08 
GeneralRe: owner drawn listview Pin
leppie15-Aug-04 19:55
leppie15-Aug-04 19:55 
GeneralRe: owner drawn listview Pin
yetanotherchris15-Aug-04 22:59
yetanotherchris15-Aug-04 22:59 
GeneralRe: owner drawn listview Pin
leppie15-Aug-04 23:16
leppie15-Aug-04 23:16 
GeneralRe: owner drawn listview Pin
yetanotherchris16-Aug-04 0:38
yetanotherchris16-Aug-04 0:38 
GeneralDelete Image File Showed in PictureBox Pin
amgad_fathy15-Aug-04 5:11
amgad_fathy15-Aug-04 5:11 
GeneralRe: Delete Image File Showed in PictureBox Pin
Stefan Troschuetz15-Aug-04 6:01
Stefan Troschuetz15-Aug-04 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.