However you can have 2 TxxxBlocksocket instances in 2 different threads
using the same socket.

Instantiate one and connect, then instantiate the other  and set
sock2.socket := sock2.socket.

I do this occasionally when I need to read in one thread and send in
another.




On Fri, May 10, 2013 at 3:06 AM, Ludo Brands <ludo.bra...@free.fr> wrote:

> On 05/10/2013 05:40 AM, Bruce Tulloch wrote:
> > If one opens a TBlockSocket (via one of its descendant classes) and
> > calls the RecvPacket method from a different (i.e. receiving) thread, is
> > TBlockSocket itself designed to support this type of use (i.e. via
> > separate send and receive threads)? Bruce.
> >
> >
>
> No it isn't. You have discovered FLastErrorDesc yourself but functions
> like SockCheck and ExceptCheck use class vars and are not thread safe.
>
> Ludo
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to