Commit Graph

66 Commits

Author SHA1 Message Date
Ben Fry
3673396587 move to JDK 1.8 instead of 1.6 b/c of Eclipse warnings 2019-01-18 09:55:43 -08:00
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
Ben Fry
971d741111 Merge pull request #4320 from kfeuz/network_readbytes
Added readBytes(max) to net library
2016-05-08 15:05:59 -04:00
Jakub Valtar
dd8698427c Update app to Java 8 2016-04-02 23:17:25 +02:00
kfeuz
44785f6bd9 Added readBytes(max) to net library 2016-02-18 22:24:44 -07:00
REAS
2e115161f4 Fix for Network library GET example 2015-10-02 15:07:01 -07:00
REAS
808aa79127 Remove rotate(x, y, z) from Reference 2015-09-16 20:19:17 -07:00
Ben Fry
f496709a87 update our own libraries to use .properties files (fixes #3574) 2015-08-11 10:30:37 -04:00
Daniel Shiffman
8fa7ef8e76 removing Carnivore client as per #2911 and https://github.com/processing/processing-docs/issues/238 2015-05-08 22:48:54 +01: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
a32a634b72 deal with .class signing conflicts and use JDT .jar files for compilation 2015-01-21 19:43:02 -05:00
Kyle Feuz
cc312f8b76 Unset the executable bit on xml files 2014-11-20 13:17:33 -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
Federico Bond
ce5daefffd Use 1.7 as source and target Java version 2014-10-20 23:52:26 -03: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
Ben Fry
7eb0f19d65 change build scripts to use built-in ecj (removes jdk req) 2013-09-12 19:21:57 -04:00
Casey Reas
c89c3311f6 Remove Puff example 2013-04-25 18:07:10 -07:00
Ben Fry
eee6123135 adding ignore files 2013-01-27 10:52:36 -05:00
benfry
8b771c0d98 cleaning up stop/dispose events 2012-11-25 17:41:33 +00:00