What is better???--sockets question

I have a server that receives one client (one thread of them) per socket.
Is it better to have all in the same socket?
where is the bottle�s neck? in the processor or in the bandwith?

ok
and what is better for my server:
1) receive each client in a different socket
2)receive all clients in one socketAFAIK you would need a new port for each server socket. How then can your clients know which port to connect too? Therefore I think (2) is the proper solution.
For a general implementation of a tcp server, have a look at my solution at http://www.ebi.ac.uk/~kirsch/monq-doc/monq/net/TcpServer.html . You can download the code by following the link at the bottom of that page. Comments/questions welcome.
Harald.

Similar Messages

  • What is better: Builder 2 oder Plug In

    Hi guys!
    As i couldn't find much about that, here is my question.
    Maybe it is interesting enough for some experts to have smal
    discussion.
    What is better to use: builder or th plug-in.?
    I don''t really need the to have a design view, so pure code
    would be enough for me. And what I hate about the builder is the
    performance when compiling large projects. Is this better if you
    use Eclipse (which version) together with the plugin. Can you have
    both installed and use the same project workplace to "share" the
    projects, depending on what you want to do?
    What gives me the best performance for writing, compiling,
    debugging?
    THX

    See iPhone. See iPhone charged to 100%. See user using iPhone. User opens an app and uses it. When done user goes into recently used list and "closes" app. User does this each time when using an app. User gets 145 texts. 71 hours later iPhone only has 8% battery charge. See the battery in red. User charges it.
    See iPhone. iPhone is charged to 100% See user using iPhone. See user opening apps and never closing them on the recently used app list. See recently used list grow to 66. User gets 141 texts. User gets 2 more phone calls than last time. 71 hours and 1 minute later iPhone has 8% battery charge. See the battery in red. User charges it.
    See user get only 1 minute difference in battery life. See user not bother to close apps anymore. See user also explain this is not exactly scientific. See user release Spot to chase down Dah-veed. See user and Jane get busy now.

  • So what is better - time efficient - Google Sketch or Strata 3d SE for ibooks author use?

    So what is better - time efficient - Google Sketch or Strata 3d SE for ibooks author use?

    Yes, but I doubt if my definition of ease-of-use is the same as yours.
    As always with these types of questions, the best method is to work with both, on your machine, using your environment, your content, your specs, your resources, with your time and then decide.

  • What's better than Illustrator?

    I've been using Illustrator for many years and several versions.  My usage is nominal and occasional/once a week, and I don't get very sophisticated for my needs, so it has been OK so far. I do not do commercial work but know Ai is the "de-facto std".
    But I read this forum often and see many criticisms of Ai and I do have occasional issues with Illy with tools and UI....just not as easy or robust as it could/should be...cumbersome at times.
    I see JET and others here make great use of Illy but also criticize (justifiably) it for not being as good as other vector tools.
    I know there are competitors, Inkscape is free, others less costly than Illy; and seemingly better/easier/faster to use...at least for some things.
    So my question: What is better than Illustrator (I'm using CS5) and why? What can they do better than Ai?  Is it worth having a second program and learning (tho I suspect the learning curve should be easy as they do similar things but have different GUI).  Or replacing Illy with something?
    Pro's/Con's that would make one make the effort to try/use something else?  I don't even know what out there is better than Illy.  I've searched www and got a few hints but nothing very significant.
    Am I wasting my time looking?
    Your feedback welcomed to help me decide whether to explore/trial other programs.

    I see JET and others here...criticize (justifiably) it for not being as good as other vector tools.
    I can't speak for "and others", but since I'm the only one you mention by name:
    If you've already deemed the criticism justifiable, then you must already know what that criticism says. When I criticize Illustrator, I don't just say "Illustrator is crap" and leave it at that, unsupported. I'm careful to explain myself with facts pertinent to the context of the discussion. I actually own and know how to use the other programs to which I compare. I've often posted lists of comparitive features.
    I've always used my real name here and sign all my posts with my initials. So finding my comments is not difficult.
    I know there are competitors, Inkscape is free, others less costly than Illy; and seemingly better/easier/faster to use...at least for some things. So my question: What is better than Illustrator (I'm using CS5) and why? What can they do better than Ai?
    Didn't you just answer your own question? Other than the broadly general things you just mentioned, what program do you want to compare, and for doing what? Surely you're not asking someone to do an exhaustive feature-by-feature comparison between Illustrator and all similar programs in this one thread?
    All you've said about what you use Illustrator for is that your use is nominal, occasional, unsophisticated, and non-commerical. Mine isn't. Commerical graphics has been my livelihood for over 40 years. Vector-based illustration is both a speciality and a passion.
    I...knowAi is the "de-facto std"
    "Defacto standard" is self-fulfilling. It's effectively equivalent to saying "More people use Illustrator because more people use Illustrator."
    So what? More people ride Vespa scooters than KTM motorcycles. But which one would you call "professional quality"? You can use either one to pick up a gallon of orange juice at the corner store. But if you enter an enduro, the KTM will get the job done with alot less stress.
    The myth is that most software buyers choose the best. That's as naive as the faith that most voters do.
    Illustrator has been slothfully resting on its "defacto standard" haunches since the dark ages (AKA the 80s). "Defacto standard" be hanged.
    I do have occasional issues with Illy with tools and UI....just not as easy or robust as it could/should be...cumbersome at times.
    Okay. What issues? State something specific and users actually familiar with other programs can compare.
    This is the 21st century. There's really little new under the sun here. A 2D drawing program is just an interface pasted on top of mostly the same old geometric functionality. The competitive advantage goes to the offering that best (easy) and most fully (robust) empowers the user. The multiplication of easy and robust yields elegance. That's a term I've never applied to Illustrator. Illustrator is one of the oldest of the bunch, lounging under the sun for so long it's at risk of skin cancer. Yet it still fails to provide basic functionality users of other drawing programs have taken for granted for decades.
    Examples that may be germane to your casual, non-commerical use? Try these things in Illustrator:
    Star Tool: Draw a star. Now change the number of points it has.
    Arc Tool: Draw 36 degrees of a circular arc.
    Label that star with a dimension.
    Distribute a group of different objects along a curve.
    Uniformly space Blend steps along a non-uniform curve.
    Attach a Blend to a closed path and have the first/last instances properly positioned.
    Knife Tool: Cut across an open unfilled path.
    Connect a text label to an object that stays connected when you move it.
    Paste a simple graphic into a text string so that it flows with the text.
    Perform a Find/Replace on carriage returns.
    Round Corners: Apply it to an accute or obtuse angle and have it actually yield the radius you specify.
    Crop a raster image.
    Rotate something. Go back later and find out what its rotation angle is.
    Pathfinders: Use them without wrecking existing fills/strokes.
    I could go on (and have). How long a list do you want? All the features/functions associated with the above basic operations (and many more) are substandard, half-baked, or even non-existent in Illustrator. This is "professional"-grade software? No, it's largely consumerish rubbish sold at exhorbitant prices just because it's the "defacto standard."
    Is it worth having a second program and learning...
    Obviously, it is to me (and a third, and a fourth, and...). As I've said many times in this forum, I don't know how anyone can legitimately claim to compare two programs if they've only got workaday familiarity with one.
    As with any other endeavor, the more drawing programs you're comfortable with, the less arduous it is to pick up another, because you tend to pick up on the underlying principles involved, as opposed to just becomming habituated to a particular program's command locations and procedures by rote.
    But you've been using AI for "many years" and find it to be "OK". So if you're happy with it, use it.
    I have a cheap, consumerish Ryobi table saw and it's "OK." But I didn't pay a professional-grade price for it, either. And I'm sure not going to write glorious reviews on it, call it "professional," and get all fearfully brand-loyal defensive about it if someone dares suggest I might ought to learn to use a different one. My use of it, like yours, is merely occasional. But I also presently need to build a TV cabinet, and I'm dreading it. If I were to open a cabinet shop, I'd be much more discriminating, and would do my own homework to make an informed decision.
    Or replacing Illy with something?
    One doesn't have to "replace." There's nothing any more wrong with using more than one 2D drawing program than there is with using more than one 3D modeling program, or raster imaging program, or page layout program, or word processor, or video edting program, or....
    Pro's/Con's that would make one make the effort to try/use something else?
    That depends on what one is doing with it. Not knowing that, I can again only offer generalities that matter to me: If you've only ever used one program of a particulat kind, you're rather in the dark regarding functionality that you may be missing that may be important to you. (Second-degree ignorance: You don't know what you don't know.) If you're mission-dependent upon that one program, you're also kind of captive to the whims and agenda of its vendor.
    That very well may not matter to you, given your nominal, occasional, unsophisticated, and non-commerical use. And if so, that's fine.
    I don't even know what out there is better than Illy. I've searched www and got a few hints but nothing very significant.
    But you just said you've been reading a bunch of posts here which mention other programs.
    Am I wasting my time looking?
    Only you can answer that about your time. Time is all any of us have.
    Your feedback welcomed to help me decide whether to explore/trial other programs.
    No offense, but frankly it sounds like you're just not motivated enough to do your own homework. If you are  sufficiently motivated, visit the websites of other drawing program vendors. Read the features lists. Dowload the demos, read the documentation, and try them out. Visit the programs' user forums. Or, if it's really not that important to you, don't.
    If you've got questions about specific functionality and/or specific programs, be more specific about what you do (or want to do).
    JET

  • What is better a shell script or a user exit?

    Hi experts!
    I need to change the owner of a file when I send it to XI sever.
    I talk with the administrator of the system to change the owner with a shell script but he tell me that is better if I use a user exit. But my question is: What is better? The shell script or the user exit?

    hi,
    >>>>I talk with the administrator of the system to change the owner with a shell script but he tell me that is better if I use a user exit
    maybe because the admin does not do the user exits ?
    you can do it with XI but you'll have to create it
    via a proxy for example (as standard file adapter does
    not support this) 
    on the other hand the file adapter supports invoking
    system commands (so you can start a shell script)
    I'm not directly answering your question
    I'm just telling you what you'll have to do
    to build your solution in both cases
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • What is better for a MBP, shut down or sleep?? when you go to bed.

    hi everyone, my question is, what is better for a MBP, to shut it down o sleep, i undestand to pun it into sleep when you go out for a time, or you need to move, but what shoul i do when i go to bed and the mac won´t be use for about 8 hours.
    thanks regards

    If you don't have any documents or programs open that need to stay open for the night then give your Mac a rest and Shut it down.
    If you're updating or have stuff loaded that you want to start back on right in the morning, you could just put it to sleep so you're all set for the morning(make sure you plug it in though). It's personal preference really.

  • What is better to run AutoCAD inventor?  XP or Windows 7? How much RAM?

    I am wondering what is better to use XP or 7 for my 2.2 ghz 2 gb ram 120 gb hd 2007 MBP. I think I am going to use Virtual Box instead of Fusion or Parallels. Can my mac handle 7 and Inventor or Autocad at the same time or should I go with XP 32 bit?

    This is an Apple software forum, not a Windows forum. Post Wiindows questions in the Windows forum or go to Microsoft's forums or Autocad's.
    Your Mac can run any Windows through VirtualBox provided you have enough RAM installed - 4 GBs would be a fair minimum.

  • What's better?

    Hey there everybody! I have an iMac G5 and a 32 inch Sony Bravia. What's better for video out:
    Mini-DVI/VGA adapter to VGA cable to TV
    or
    Mini DVI/DVI adapter to HDMI/DVI cable to TV?
    If there is a difference, will it be noticeable enough to spend the extra money for the extra cord?

    OMG! I just found this! Mini DVI to HDMI adapter at Future Shop!
    http://www.futureshop.ca/en-CA/product/startech-startech-mini-dvi-to-hdmi-video- adapter-cable-mdvihdmimf-mdvihdmimf/10155701.aspx?path=8c4cd7f1a46c9ed096fa9c61f 5a309b2en02
    Would that be my best bet?

  • HT201363 Sir/Madam,  can I ask for help to know what's my secret questions and answer in my apple ID? Coz i'm not the one who make my apple ID when i first buy my phone. I can't ask my friend On what he put in my secret questions coz i'm already here in p

    Sir/Madam,
    can I ask for help to know what's my secret questions and answer in my apple ID?
    Coz i'm not the one who make my apple ID when i first buy my phone. I can't ask my friend
    On what he put in my secret questions coz i'm already here in philippines right now and my friend who made my apple ID is still in bahrain.. I wish i could get a feedback through this matter. Thanks and i'm kyztle Romanes . Thanks you so much i wish i'd get any feedback to your side.. I wanna purchase a builder in my clash of clans account coz my clanmate philip sent me a gift card for 25$ that's why i need your help.. Thanks again Apple company..
    Sent from my iPhone
    On Jan 1, 2014, at 4:53 PM, iTunes Store <[email protected]> wrote:
    $25
    Buy that builder
    Philip sent you an iTunes Gift
    You can redeem this gift on your iPad, iPhone, iPod touch, or on your computer using iTunes. Once you redeem your gift and verify your Apple ID, you will be credited with $25 and can purchase the latest music, apps, and more.
    Valid only on iTunes Store for U.S. Requires iTunes account and prior acceptance of license and usage terms. To open an account you must be 13+ and in the U.S. Compatible software, hardware, and Internet access required. Not redeemable for cash, no refunds or exchanges (except as required by law). Code may not be used to purchase any other merchandise, allowances or iTunes gifting. Data collection and use subject to Apple Customer Privacy Policy, see www.apple.com/privacy, unless stated otherwise. Risk of loss and title for code passes to purchaser on transfer. Codes are issued and managed by Apple Value Services, LLC (“Issuer”). Neither Apple nor Issuer is responsible for any loss or damage resulting from lost or stolen codes or use without permission. Apple and its licensees, affiliates, and licensors make no warranties, express or implied, with respect to code or the iTunes Store and disclaim any warranty to the fullest extent available. These limitations may not apply to you. Void where prohibited. Not for resale. Subject to full terms and conditions, see www.apple.com/legal/itunes/us/gifts.html. Content and pricing subject to availability at the time of actual download. Content purchased from the iTunes Store is for personal lawful use only. Don’t steal music. © 2012 Apple Inc. All rights reserved.
    Apple respects your privacy.
    Information regarding your personal information can be viewed at https://www.apple.com/legal/privacy/.
    Copyright ©2014 Apple Inc. All rights reserved.
    <Email Edited by Host>

    It is a phishing attempt to get your Apple ID and Password.
    You should forward it to Apple : [email protected]

  • What is better for security?  WPA2 or Access control

    I have a Airport express and 2 computers; a Mac and a PC.
    When it come to securing your wi-fi connection so you don't get unauthorized clients on your network.
    What is better
    A- Just using encryption like WPA2 or some other password based system or
    B- Just entering the "Airport ID" (MAC) of the computers I want to authorize in my network on the Access control panel.
    Seems to me like the later is easier on the clients since they don't need a password or anything, It's completely transparent for the client. And I believe encryption slows down the connection a bit and create overhead for the computer. But maybe I don't have the full picture of the situation.
    Is there anybody who can illuminated this subject for me?
    thanks
    PowerBookG4 Mac OS X (10.3.9)

    WPA2 is virtually uncrackable only really vulnerable if you use a real word as a password.
    When using access control, MAC addresses are sent unecrypted can be read and spoofed and therefore do not add any security.
    Unfortunately "Closed" networks, MAC access control lists, and reduction in transmission power are all more "feel good" security rather than real security. All these various approaches are dated and mistakenly lead to overconfidence.
    WPA is your friend if you value wireless security.

  • What is better when converting analog video for FCE, Canopus100/110/300/or5

    All,
    What is better when converting analog video for FCE, Canopus100/110/300/or500? I have a new MACPRO with FCE HD and I wanted to convert some of my older video that was recorded on a HI8 Camcorder... Thanks.

    I have the ADVC-100 (older model) and ADVC-110. They are identical except that the ADVC-110 does not come with an AC power adapter. Currently sells for about $220USD. If all you need to do is convert from HI8 tapes, the ADVC100/110 will do the job quite nicely.
    The ADVC300 adds some enhancements for video signal cleanup, but at a higher price. Currently sells for about $450USD. The ADVC500 is overkill for home use.

  • What is better ti use entourage or my .mac account to vidoe chat?

    What is better to use entourage or my .mac account to video chat?
    How do I add a buddy into my entourage buddy list?
    Message was edited by: fotomike

    Entourage is a Microsoft application and is probably Linked to MSN for Mac.
    I have Office:Mac 2000 and this version of MSN does not Video.
    9:24 PM Tuesday; December 18, 2007

  • What is better Mac Mini or Mac Pro and 4K 40" screen or iMac 5K for work with Exel

    I am working on Macbook pro retina for around 16 hours a day,  it is ok but the screen is to small. I am opening about 25 - 30 EXCEL windows, 20 - 25 safari windows at the same time. Excel windows are small, they only show 40 rows and S column   Now I am considering buying  iMac 5k ( but the screen is only 27", however a very high resolution but I think that fonts and digits displayed may be too small ). I am also considering Mac Mini or Pro with 40" 4K TV ( 4k computer monitors are 27 - 31" , so better idea would be purchasing iMac 5k ) . The problem is that 40 - 42" TV don't have Display Port ( I can't find  it anywhere )
    Please help me to choose what would suit my needs better. I need large screen to work comfortably with an Excel sheets.  What is better? Mac Mini or Mac Pro and 4K 40" screen or iMac 5K for work with Excel ?. The other problem I have is that when I spend  16 hours at work with retina macbook , my eyes are ok. Using the  30'' Dell screen 2560/1440 my eyes are tired after 2 hours.
    Thanks for your help on advance
    Best regards
    David

    Currently you can only get 4 K at 30 Hz via HDMI. Some users have reported jerky curser movement because of the 30 Hz.
    I would go for the 5K iMac. You can add a second screen at 4K.
    FaceTime HD camera
    Simultaneously supports full native resolution on the built-in display and up to 3840 by 2160 pixels on an external display
    Support for extended desktop and video mirroring modes
    The Mac Mini supports:
    Support for up to two displays at 2560 by 1600 pixels, both at millions of colors
    Thunderbolt digital video output
    Native Mini DisplayPort output
    DVI output using Mini DisplayPort to DVI Adapter (sold separately)
    VGA output using Mini DisplayPort to VGA Adapter (sold separately)
    Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter (sold separately)
    HDMI video output
    Support for 1080p resolution at up to 60Hz
    Support for 3840-by-2160 resolution at 30Hz
    Support for 4096-by-2160 resolution at 24Hz
    The 2013 Mac Pro can use three and more displays:
    Mac Pro (Late 2013): Using multiple displays - Apple Support
    I would go for multiple screens

  • Hi. im ipad and ipohe user. now i want to buy my first macbook. i need to know what is better for me: macbook pro 13´´ or macbook air 13´´?? or another??

    hi. im ipad and ipohe user. now i want to buy my first macbook. i need to know what is better for me: macbook pro 13´´ or macbook air 13´´?? or another??
    i will not move it frecuently from home because i always have with me the iphone and sometimes the ipad.
    im looking apple store online because im trying to buy it refubrished (im from argentina and travel to NYC next month)...
    please i hear you...!

    Light weight basic needs, power miser - MacBook Air (glossy screens)
    Semi-light weight basic needs, more storage, DVD drive, hot machine (no 3D gaming) - 13" MacBook Pro (glossy screens)
    Bit heavier, pro needs, 3D gaming, cool machine, power hungry, - 15" MacBook Pro  (anti-glare screen option, recommended)
    Same as above, larger screen for HD video, cool machine,  power hungry, 17" MacBook Pro (anti-glare screen option, recommended)

  • Whats the size of ios7 if i want to update it from itunes?and what's better OTA or itunes?

    whats the size of ios7 if i want to update it from itunes?and what's better OTA or itunes?

    Whatsapp should work fine.
    Doing the upgrade over iTunes will give you the opportunity to make a full backup of your phone first, and will most likely provide for a faster and smoother upgrade.   I'd do it that way, and will once I get home later tongith.

Maybe you are looking for

  • How can I transfer my contact from old iphone 4 to new iphone 5S

    Hi, Please help me out to transfer my contact from my old iphone 4 to new iphone 5S, I could transfer photos only.

  • My computer, especially mail is so slow

    Does anyone know what could cause my computer to slow down so much.  My mail especially is slow.  Every time I write an email there are 3 to 4 lag times.....

  • FEBA status wrong

    we use online bank statement, in FEBA, we found one upload MT940 file got problem. spool shows no error message, but in FEBA, the status is "to be posted", Transaction: N195 and N698, how to change status to be "posted"

  • Build and load error

    While running the bat job for build and load i got this error Failed to select any new views or all views that you requested to build exist already. I guess it is build error . Please let me know where i should look and what is the cause of this erro

  • Creating Reporting and Analysis Document Templates in PowerPoint?

    Has anyone been able to do this in version 11.1.1.1? It's referenced in the Smart View User's Guide on page 175. I'm trying to figure out all of the interaction points between Essbase and MS Office.