Commit Graph

46 Commits

Author SHA1 Message Date
Jakub Valtar
404990f29f Fix Net library buffer sizes
Because I don't know how to count...
2018-02-02 17:14:56 +01:00
Jakub Valtar
d887779eb6 Net-client: perf tuning - make read buf the size of socket receive buf 2018-01-22 20:28:09 +01:00
Jakub Valtar
fe465fe4de Net-client: remove unneeded synchronization block 2018-01-22 19:50:48 +01:00
Jakub Valtar
bb6c9a568a Net-server: remove suspicious sleep 2018-01-22 19:50:06 +01:00
Jakub Valtar
f6b08df336 Net-server: call clientEvent() of the sketch when received data from a client 2018-01-22 19:34:21 +01:00
Jakub Valtar
2b1cd66f83 Net: unwrap the exception if it came from the user code 2018-01-22 13:44:43 +01:00
Jakub Valtar
0d12c46825 Net-server: remove extra array creation 2018-01-21 22:32:16 +01:00
Jakub Valtar
b692215775 Net-server: properly synchronize clients array 2018-01-21 22:30:46 +01:00
Jakub Valtar
f76d3c4f80 Net-client: remove extra catch block
Handled by IOException block (it's a superclass of ConnectException and does the same thing).
2018-01-21 22:30:46 +01:00
Jakub Valtar
0e12d1175e Net-client: remove unnecessary array creation 2018-01-21 22:30:45 +01:00
Jakub Valtar
aba056cf96 Net-client: set max buffer size 2018-01-21 22:30:36 +01:00
Jakub Valtar
e7f6e1b5b0 Net-client: read bytes to a read buffer instead of one by one 2018-01-21 22:28:01 +01:00
Jakub Valtar
e64a283a00 Net-client: compact the buffer if possible instead of resizing 2018-01-21 17:03:55 +01:00
Jakub Valtar
f140299e48 Net-client: synchronize access to all concurrently modified fields 2018-01-21 16:42:45 +01:00
Jakub Valtar
05a2819a58 Net-client: use final field for lock 2018-01-21 16:40:47 +01:00
kfeuz
44785f6bd9 Added readBytes(max) to net library 2016-02-18 22:24:44 -07:00
REAS
808aa79127 Remove rotate(x, y, z) from Reference 2015-09-16 20:19:17 -07:00
Ben Fry
382e03ac27 merge fixes for #1400 with updates to #3088 2015-04-01 11:38:52 -04:00
Ben Fry
598613300d Merge pull request #3088 from kfeuz/client_memory_leak
Prevent memory leak of Client by unregistering parent dispose method
2015-04-01 11:33:36 -04:00
Kyle Feuz
3f131d7975 Check for dead clients while checking for available messages 2015-02-06 11:54:52 -07:00
kfeuz
a2cc6a074d Prevent possible duplicate deregistering 2015-02-05 00:34:14 -07:00
kfeuz
4716319471 Prevent memory leak by unregistering parent dispose method 2015-02-05 00:24:08 -07:00
Ben Fry
96b9f8dc21 remove unnecessary parens 2014-11-14 15:08:52 -07:00
Ben Fry
ee9584bf53 Merge pull request #2588 from kfeuz/Issue2364
Implements the active() method for Serial and Server (Issue #2364).
2014-11-14 15:01:17 -07:00
Ben Fry
c832bde934 Merge pull request #2922 from kfeuz/Issue2576
Fixes NPE when calling ip() on disconnected clients.
2014-11-14 14:43:04 -07:00
Ben Fry
badd307ec9 Merge pull request #2578 from kfeuz/Issue2577
Fixes NPE when writing to disconnected client, Issue #2577
2014-11-14 14:31:14 -07:00
Kyle Feuz
3f01414d01 Changed ip() to return null when client has disconnected 2014-11-01 23:08:58 -06:00
Ben Fry
bff235dcb9 throw exception if Server constructor fails 2014-07-30 21:37:12 -04:00
Kyle Feuz
6274986bd6 Implements the active() method for Serial and Server (Issue #2364). 2014-06-10 23:22:08 -07:00
Kyle Feuz
94e01acb7b Fixes Issue #2576 NPE when calling ip() on disconnected clients. 2014-06-10 01:37:46 -07:00
Kyle Feuz
3a7a1c07b5 Fixes NPE when writing to disconnected client, Issue #2577 2014-06-09 23:06:17 -07:00
Ben Fry
95de8998cb add Server bind option (#2356) and todo notes 2014-05-10 20:22:44 -04:00
Kyle Feuz
7ae40bed1a Keep basic error reporting 2014-04-21 16:24:30 -07:00
Kyle Feuz
43d1d5a2fe Fix for #Issue74 2014-04-21 15:55:59 -07:00
Ben Fry
ad583897a1 other tweaks to server class 2014-04-19 04:45:06 -04:00
Kyle Feuz
fca59082a8 Fixed missing disconnect for some clients 2014-04-18 15:48:14 -07:00
Kyle Feuz
0b50a98219 Implements disconnectEvent for the Server code as requested in Issue #2133 2014-04-18 01:42:54 -07:00
Casey Reas
c89c3311f6 Remove Puff example 2013-04-25 18:07:10 -07:00
benfry
8b771c0d98 cleaning up stop/dispose events 2012-11-25 17:41:33 +00:00
benfry
772597e99b add ip() method to Server (issue 1228) 2012-11-24 18:43:41 +00:00
benfry
728a45dae5 apply patch for clientEvent() (issue 189) 2012-11-24 18:43:10 +00:00
benfry
0f776dfd24 notes and updating to registerMethod() 2012-10-26 18:12:51 +00:00
sansumbrella
7e83cfc9c7 @see_external tag implemented. See todo.txt for more info. Allows for proper documentation of events in libraries. 2011-09-23 01:34:03 +00:00
Casey Reas
9c6f6858f4 Removing old files for 3D and Library examples 2011-09-06 17:56:47 +00:00
Casey Reas
adfaed5e1a Basic 2.0 Ref changes 2011-07-27 16:04:21 +00:00
benfry
d04cfbb90b moving to new structure 2011-01-26 19:10:26 +00:00