aboutsummaryrefslogtreecommitdiff
path: root/net
AgeCommit message (Collapse)Author
2010-03-24Added a flag that is set if sender thread can't create. This stops any ↵Martin Peach
further sends until an [unblock( message is sent to tcpserver. svn path=/trunk/externals/mrpeach/; revision=13253
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-22Changed valid-stream output to be a signal output. Moved all post()s out of ↵Martin Peach
the perform routine. Updated help patch and version. svn path=/trunk/externals/mrpeach/; revision=13239
2010-03-22check for NULL-pointer in destructorIOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=13238
2010-03-16Output valid state only when it changes.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=13216
2010-03-16Added an outlet to udpreceive~ to indicate valid audio. Ouput address and ↵Martin Peach
port only if changed. Updated version and help patch. svn path=/trunk/externals/mrpeach/; revision=13215
2010-03-11Updfated version number and help patch.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=13205
2010-03-11Added a "TAG!" identifier field to the tag so it can be verified as a tag. ↵Martin Peach
This should help prevent crashes in case of dropped packets. svn path=/trunk/externals/mrpeach/; revision=13204
2010-03-09Moved client-specific parameters into a single t_tcpserver_socketreceiver ↵Martin Peach
struct. svn path=/trunk/externals/mrpeach/; revision=13199
2010-03-09fixing bug #2966186IOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=13197
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-02-24Corrected some error messages, check for EINVAL after recvfrom(), to try to ↵Martin Peach
find out why it happens... svn path=/trunk/externals/mrpeach/; revision=13189
2010-01-20Added SO_BROADCAST so you can actually broadcast with a .255 address...Martin Peach
svn path=/trunk/externals/mrpeach/; revision=13057
2010-01-18use unix line endingsMartin Peach
svn path=/trunk/externals/mrpeach/; revision=13038
2010-01-18Make the connection thread detached and don't refer to its struct directly, ↵Martin Peach
check for thread creation errors. svn path=/trunk/externals/mrpeach/; revision=13037
2010-01-18Use NULL instead of 0 to reset thread pointer so maybe now MinGW can compile ↵Martin Peach
it...removed unused symbols svn path=/trunk/externals/mrpeach/; revision=13031
2010-01-15Added include for ws2tcpip.h for socklen_t for _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=13013
2010-01-14Don't need float_cast.h anymore, using the flint union with ntohl/htonl instead.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12999
2010-01-14Always send in network byte order for all architectures. UDP receiving ↵Martin Peach
socket doesn't need to be non-blocking (I think...). Cleaned up help patch. svn path=/trunk/externals/mrpeach/; revision=12998
2010-01-14Changed int optLen to socklen_t to avoid signedness warningMartin Peach
svn path=/trunk/externals/mrpeach/; revision=12997
2010-01-13Fixed header files for _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12985
2010-01-12Block size is settable by creation argument. Buffer size message is ↵Martin Peach
specified in frames. Info message gives some more info. Channels transmitted can be set to zero. Cleaned up help patch. svn path=/trunk/externals/mrpeach/; revision=12968
2010-01-11Added "unix" to the test for "UNIX".Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12955
2010-01-11help patch for udpsend~ and udpreceive~Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12954
2010-01-11Versions of netsend~ for udp.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12953
2010-01-04Had the wrong #include for ioctl...Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12882
2010-01-02Changed MSW to _WIN32. Added tcpserver_send_buffer_avaliable_for_client()Martin Peach
using SIOCOUTQ ioctl in linux to see if send buffer has any room left. Apparently no equivalent exists for BSD or Windows. svn path=/trunk/externals/mrpeach/; revision=12874
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12867
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12866
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12865
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12864
2010-01-02Changed MSW to _WIN32Martin Peach
svn path=/trunk/externals/mrpeach/; revision=12863
2009-11-29Sender threads are now created in the detached state so their resources will ↵Martin Peach
be freed when the threads complete. This appears to stop the accumulation of handles on WinXP at least. svn path=/trunk/externals/mrpeach/; revision=12814
2009-11-28Removed duplicate send, added threaded send for files, and also send ↵Martin Peach
whenever buffer is full (65536 bytes) for incoming lists (although [tcpserver] is unlikely to be fed lists that long) svn path=/trunk/externals/mrpeach/; revision=12813
2009-11-12Using pthreads to send each message to each client in its own thread. This ↵Martin Peach
should eliminate hangups when clients disappear halfway through, and increase responsiveness of Pd with [tcpserver]. Messages are sent as one unit instead of byte-by-byte. Select() is no longer used to check for available space in the buffer. svn path=/trunk/externals/mrpeach/; revision=12760
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-04-08Added [timeout( message to set microsecond timeout for send. This gives time ↵Martin Peach
for unusually small buffers to clear. Set default timeout to 1000us. Also prints a message if the whole send didn't complete. Updated help patch to match. svn path=/trunk/externals/mrpeach/; revision=10986
2009-03-09The 'sent' message now contains client number, bytes sent, socket number. ↵Martin Peach
Empty 'send' message triggers list of client messages on right outlet. Empty socket number message causes a client message on right outlet. Help patch updated. svn path=/trunk/externals/mrpeach/; revision=10852
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
2009-03-02Fixed some warnings about signed/unsigned variables.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=10829
2009-03-02Fixed a bug that prevented the send routine from leaving the loop when no ↵Martin Peach
more data can be sent. Now it won't hang if you try sending to a recently disconnected client, honest! svn path=/trunk/externals/mrpeach/; revision=10828
2009-03-02tcpserver_send_buf: send only one byte at a time into the buffer to avoid ↵Martin Peach
buffer overflow. This should not slow the whole thing down too much since we're already passing things one byte at a time. svn path=/trunk/externals/mrpeach/; revision=10827
2009-03-01Added a [clientbuf( message to set the send buffer size for that client. ↵Martin Peach
Also the [client( message will output the current buffer size as well as the socket and ip for that client. Help patch updated. svn path=/trunk/externals/mrpeach/; revision=10824
2009-02-24Updated help files to reflect new [tcpserver], cleaned up a bit more.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=10813
2009-02-24Adds a status outlet which currently gives info about connected clients and ↵Martin Peach
the amount of sent data. svn path=/trunk/externals/mrpeach/; revision=10812
2009-02-23Fixed select call so it works properlyMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10810
2009-02-22include errno.h for linuxMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10806
2009-02-22Removed some commented-out stuffMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10805
2009-02-22Checks to see if a socket can be written to before sending. If not, prints a ↵Martin Peach
message to the pd window and doesn't send the data. svn path=/trunk/externals/mrpeach/; revision=10804