Re: [Mingw-w64-public] Semi-OT: Can one use separate threads for reading and writing a standard winsock socket?

2013-02-06 Thread K. Frank
Hi Kai! On Wed, Feb 6, 2013 at 9:56 AM, Kai Tietz wrote: > Streams in binary mode for native Windows sockets? errhh > > Anyway Frank, > > be sure that works. Sockets are bi-directional and you can write to > them in one thread and poll for data in another thread without issues. > I have already

Re: [Mingw-w64-public] Semi-OT: Can one use separate threads for reading and writing a standard winsock socket?

2013-02-06 Thread Kai Tietz
Streams in binary mode for native Windows sockets? errhh Anyway Frank, be sure that works. Sockets are bi-directional and you can write to them in one thread and poll for data in another thread without issues. I have already done that in the past without issue. Regards, Kai --

Re: [Mingw-w64-public] Semi-OT: Can one use separate threads for reading and writing a standard winsock socket?

2013-02-06 Thread Earnie Boyd
On Wed, Feb 6, 2013 at 8:32 AM, K. Frank wrote: > I'm going to go with the working assumption that I can use two > threads with a winsock socket, but I'll keep my eyes open, just > in case. You might want to be sure the streams are set to binary mode and be careful of buffering. -- Earnie -- htt

Re: [Mingw-w64-public] Semi-OT: Can one use separate threads for reading and writing a standard winsock socket?

2013-02-06 Thread K. Frank
Hi Earnie! On Wed, Feb 6, 2013 at 7:32 AM, Earnie Boyd wrote: > On Tue, Feb 5, 2013 at 8:44 PM, K. Frank wrote: >> Hello List! >> >> Not really a pure mingw-w64 question, but maybe someone here knows >> the answers. >> >> Socket connections go two ways -- you can read from and write to them. >> W

Re: [Mingw-w64-public] Semi-OT: Can one use separate threads for reading and writing a standard winsock socket?

2013-02-06 Thread Earnie Boyd
On Tue, Feb 5, 2013 at 8:44 PM, K. Frank wrote: > Hello List! > > Not really a pure mingw-w64 question, but maybe someone here knows > the answers. > > Socket connections go two ways -- you can read from and write to them. > With a standard windows socket, is it safe to use one thread for reading >