aboutsummaryrefslogtreecommitdiff
path: root/net
AgeCommit message (Collapse)Author
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
2008-11-05Updated to add port number to list on right outletMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10365
2008-11-05Added port number output to ip list on right outlet as suggested by zmoelnigMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10364
2008-11-05Updated to add port number on ip (right) outletMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10363
2008-11-05Added port number to ip outlet as suggested by zmoelnigMartin Peach
svn path=/trunk/externals/mrpeach/; revision=10362
2008-11-05Added broadcast permission to sockets as suggested by zmoelnig's patch 2221504Martin Peach
svn path=/trunk/externals/mrpeach/; revision=10361
2008-06-18Clarify what SO_REUSEADDR is for, no code changes.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=10030
2008-05-07removed svn:executable-flagIOhannes m zmölnig
svn path=/trunk/externals/mrpeach/; revision=9769
2008-03-27No limit on sendable file size.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=9628
2008-03-20Updated with dump messageMartin Peach
svn path=/trunk/externals/mrpeach/; revision=9612
2008-03-20Added dump message for hexdump of received characters to main window.Martin Peach
Added #include <sys.types.h> for u_long define. svn path=/trunk/externals/mrpeach/; revision=9611
2008-01-21Applied W.Ritsch's patch to fix sign error with input > 127Martin Peach
svn path=/trunk/externals/mrpeach/; revision=9154
2007-08-06Closing socket should actually work now. Before it was just removing it from ↵Martin Peach
the list. svn path=/trunk/externals/mrpeach/; revision=8439
2007-08-02Added disconnectclient and disconnectsocket methods so server can close ↵Martin Peach
connections too. svn path=/trunk/externals/mrpeach/; revision=8347
2007-07-23Removed unused static binbuf that caused occasional crashes when ↵Martin Peach
reinstantiating the object. Thanks IOhannes for pointing it out! svn path=/trunk/externals/mrpeach/; revision=8211
2007-06-20UpdatedMartin Peach
svn path=/trunk/externals/mrpeach/; revision=7790
2007-06-20Implemented IOhannes' list sendMartin Peach
svn path=/trunk/externals/mrpeach/; revision=7789
2006-12-12removed the "break;" statement in the broadcast() code to enable broadcastingIOhannes m zmölnig
to all connected clients (and not jsut the first one) svn path=/trunk/externals/mrpeach/; revision=6815
2006-12-04make sure bytes > 127 are not interpreted as negative.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=6615
2006-12-04make sure bytes >127 are not interpreted as negative.Martin Peach
svn path=/trunk/externals/mrpeach/; revision=6614
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-28changed MAX_PATH to FILENAME_MAXMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6491
2006-11-07test file for net object help patchesMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6226
2006-11-07added send filenameMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6225
2006-11-07removed declspecMartin Peach
svn path=/trunk/externals/mrpeach/; revision=6224
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
2006-08-17added mrpeach targets and added missing header to get things compiling on ↵Hans-Christoph Steiner
Mac OS X svn path=/trunk/externals/mrpeach/; revision=5636
2006-08-16Added the net, osc and sqosc~ directoriessvn2git-rootMartin Peach
svn path=/trunk/externals/mrpeach/; revision=5629