Re: Sockets: code works locally but fails over LAN



On 2005-08-31, Peter Hansen <peter@xxxxxxxxxxx> wrote:

> 2. I'm not at all sure that accessing the same socket object
> simultaneously from two threads is safe.

It's OK under Unix. Having one thread handle rx and a
different one handle tx is a pretty widely used method.

Don't know about Win32...


--
Grant Edwards grante Yow! Someone in DAYTON,
at Ohio is selling USED
visi.com CARPETS to a SERBO-CROATIAN
.



Relevant Pages

  • Re: Sockets: code works locally but fails over LAN
    ... I'm not at all sure that accessing the same socket object ... >>>simultaneously from two threads is safe. ... >> It's OK under Unix. ... socket.recv() just calls recvand socket.send ...
    (comp.lang.python)
  • Re: [RFC] readdir mess
    ... Is there any reason that hfs_mac2asc would not be safe? ... hfsplus) encoding found on disk. ... into a unix model, there is just one file that contains the equivalent ... the directory inodes reflect the number of child directories. ...
    (Linux-Kernel)
  • Controlling my machine via Unix
    ... I am using OSX Tiger which is Unix based. ... I am not sure if its safe, ... but next weekend I should be taking a vacation and I was wondering if it ... leave it on for remote access. ...
    (comp.unix.questions)
  • Controlling my machine via Unix
    ... I am using OSX Tiger which is Unix based. ... I am not sure if its safe, ... but next weekend I should be taking a vacation and I was wondering if it ... leave it on for remote access. ...
    (comp.unix.shell)
  • Re: which PC
    ... The first worms were unix based and there have been plenty of problems since. ... Experience says it's safe. ... If I were a Windows user, my next box would be an Intel Mac, so if I were still afraid of a new OS, I could boot right into Vista or whatever. ...
    (rec.photo.digital)