Need to synchronize Socket.send()?

BCS ao at pathlink.com
Sun Aug 19 19:58:23 PDT 2007


Reply to Max,

> Consider this threaded socket server:
> 
[...]
> Is Socket.send() synchronized, or do I need to synchronize it myself?
> 

I'm no expert, but I'd guess not, each thread will get it's own socket, so 
that shouldn't be a problem and I'd be surprised if Socket.send is not thread 
safe.





More information about the Digitalmars-d mailing list