Commit Graph

80 Commits

Author SHA1 Message Date
Ben Fry
9802ccbd88 clean up warnings and formatting in the Client code 2022-01-10 19:08:14 -05:00
Ben Fry
aab8d8fa50 use UTF-8 for readString() and write() in net client 2022-01-10 19:04:38 -05:00
Ben Fry
4eb0939a9e adding intellij project files now that they have settled a wee bit 2021-12-06 13:18:48 -05:00
Ben Fry
a4d13df9e6 fixing Eclipse CLASSPATH entries for JDK 2021-06-22 07:35:21 -04:00
Anadroid
118e22e329 Formatting brief descriptions 2021-04-13 16:54:57 +02:00
Ben Fry
ce77558c97 tweak project info for Eclipse to fix up their import to IntelliJ 2021-01-17 15:11:25 -05:00
Ben Fry
2a2a607353 update names of project files 2021-01-17 13:21:01 -05:00
Ben Fry
a4c44950af make sure these are pointing at the processing4- projects 2021-01-17 13:18:48 -05:00
Anadroid
dc6b4ed47c Renaming templates 2020-09-16 09:41:35 +02:00
Anadroid
8a7c9571fa Updated descriptions in comments for processing core and libraries 2020-09-15 10:17:15 +02:00
Anadroid
42b0efb8b8 Changed comments for the libraries network, serial, and hardware i/o 2020-09-10 16:07:03 +02:00
A Pottinger
7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
A Pottinger
c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
REAS
dc322fb48a Remove redundant params for Server reference 2019-07-25 12:47:22 -07:00
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