aboutsummaryrefslogtreecommitdiff
path: root/net/tcpclient.c
AgeCommit message (Collapse)Author
2011-11-08Fixed an off-by-one error in thread buffer indexing.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=15714
2011-11-04Add a flag to sendthreadparams to indicate if the thread is in use or not. ↵Martin Peach
Don't reuse the buffer if it's still active. svn path=/trunk/externals/mrpeach/; revision=15704
2011-11-03To prevent overwriting the send buffer with multiple simultaneous messages, ↵Martin Peach
each sender thread now gets its own buffer. (Usually a multiple message results in two TCP packets, with the first message in the first packet and the rest in the second.) The buffers are preallocated and assigned to threads in round-robin fashion. There are MAX_TCPCLIENT_THREADS (32) buffers. Wait for all threads to terminate before disconnecting a socket. svn path=/trunk/externals/mrpeach/; revision=15700
2011-10-21use auto-macro _WIN32 instead of Pd-defined macro UNIX, this means the build ↵Hans-Christoph Steiner
system doesn't need to set any macros to work properly svn path=/trunk/externals/mrpeach/; revision=15636
2011-01-13Sometimes send returns 0 if the packet is queued, so we don't consider that ↵Martin Peach
to mean it's blocked. svn path=/trunk/externals/mrpeach/; revision=14736
2010-07-07converted error() calls to pd_error() calls where appropriate, ie. where a ↵Hans-Christoph Steiner
findable error is desirable svn path=/trunk/externals/mrpeach/; revision=13694
2010-05-06Make sure client is not already connected before spawning a thread to ↵Martin Peach
connect it. Based on ico's patch svn path=/trunk/externals/mrpeach/; revision=13497
2010-03-29oops, undoing last commit; sorryIOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=13306
2010-03-29replaced &s_... by gensym("...")IOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=13305
2010-03-26Sends all bytes in one block in a single thread, blocks further sends if one ↵Martin Peach
doesn't work until [unblock( message received. Removed [receive(, [recv(, [timeout( message methods as they are not relevant. svn path=/trunk/externals/mrpeach/; revision=13290
2010-03-23Fixed NULL-pointer access bug in tcpserver_free() that caused trouble when ↵Martin Peach
closing a [tcpserver]. Free send parameters if thread fails to create. [tcpclient] posts "tcpclient_free" at start and end of tcpclient_free if verbosity==1. svn path=/trunk/externals/mrpeach/; revision=13243
2010-03-02Added a verbosity method to stop [tcpclient] printing in the main window ↵Martin Peach
every time it connects/disconnects. Updated the help patch to match. svn path=/trunk/externals/mrpeach/; revision=13193
2010-01-15Added include for ws2tcpip.h for socklen_t for _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=13013
2010-01-14Changed int optLen to socklen_t to avoid signedness warningMartin Peach
svn path=/trunk/externals/mrpeach/; revision=12997
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12867
2009-04-08Oops, I had forgotten to add the default timeout of 1000us.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=10988
2009-04-08Added timeout message to set send timeout in microseconds, defaults to 1000.Martin Peach
Changed help patch to match. svn path=/trunk/externals/mrpeach/; revision=10987
2009-03-04Changed send routine to send one byte at a time and output number of bytes ↵Martin Peach
sent, so it won't block if the other end disappears. Also settable buffer size. Help path updated. svn path=/trunk/externals/mrpeach/; revision=10835
2008-05-07removed svn:executable-flagIOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=9769
2007-06-20Implemented IOhannes' list sendMartin Peach
svn path=/trunk/externals/mrpeach/; revision=7789
2006-12-01Use sprintf_s instead of snprintf if _MSC_VER definedMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6563
2006-11-28changed MAX_PATH to FILENAME_MAX.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=6492
2006-11-07added file sendMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6223
2006-08-24Renamed files without x_net_ prefix.Martin Peach
Removed extra copies of tcpserver and tcpclient svn path=/trunk/externals/mrpeach/; revision=5726