Title: Network library examples work in 3.4, but broken in Processing 3.5.4/4.0a3 · Issue #6166 · processing/processing · GitHub
Open Graph Title: Network library examples work in 3.4, but broken in Processing 3.5.4/4.0a3 · Issue #6166 · processing/processing
X Title: Network library examples work in 3.4, but broken in Processing 3.5.4/4.0a3 · Issue #6166 · processing/processing
Description: Description I wrote the following simple_server.pde and simple_client.pde using "processing.net.*;" but their behaviors seem to be strange. The simple_client.pde seems to receive "Hi" and "Yes". Am I missing something? // simple_server i...
Open Graph Description: Description I wrote the following simple_server.pde and simple_client.pde using "processing.net.*;" but their behaviors seem to be strange. The simple_client.pde seems to receive "Hi" and "Yes". Am...
X Description: Description I wrote the following simple_server.pde and simple_client.pde using "processing.net.*;" but their behaviors seem to be strange. The simple_client.pde seems to receive "Hi...
Opengraph URL: https://github.com/processing/processing/issues/6166
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Network library examples work in 3.4, but broken in Processing 3.5.4/4.0a3 ","articleBody":"\u003c!--- ** For coding questions, please use https://discourse.processing.org ** --\u003e\r\n\u003c!--- ** This form is only for bugs in the software \u0026 feature requests ** --\u003e\r\n\r\n\u003c!--- ** Also be sure to read the troubleshooting page first: ** --\u003e\r\n\u003c!--- ** https://github.com/processing/processing/wiki/Troubleshooting ** --\u003e\r\n\r\n\u003c!--- ** Before posting, please search Issues for duplicates ** --\u003e \r\n\r\n## Description\r\n\u003c!--- Use a title that describes what is happening. --\u003e\r\n\u003c!--- Give a description of the proposed change. --\u003e\r\nI wrote the following simple_server.pde and simple_client.pde using \"processing.net.*;\" but their behaviors seem to be strange. \r\nThe simple_client.pde seems to receive \"Hi\" and \"Yes\".\r\nAm I missing something?\r\n\r\n```\r\n// simple_server\r\nimport processing.net.*;\r\nServer svr;\r\n\r\nvoid setup() {\r\n svr = new Server(this, 5555); \r\n size(450, 255);\r\n}\r\n\r\nvoid draw() {\r\n Client c = svr.available();\r\n if (c != null) { \r\n String s = c.readString(); // 読み込む\r\n println(s);\r\n svr.write(\"Yes\");\r\n }\r\n}\r\n```\r\n\r\n```\r\n// simple_client\r\nimport processing.net.*; \r\nClient c; \r\n\r\nvoid setup() { \r\n c = new Client(this,\"127.0.0.1\", 5555);\r\n size(450, 255);\r\n} \r\n\r\nvoid draw() {\r\n if (c.available() \u003e 0){\r\n String s = c.readString(); \r\n println(s);\r\n }\r\n}\r\n\r\nvoid mouseClicked() {\r\n c.write(\"Hi\"); \r\n}\r\n````\r\n\r\n## Expected Behavior\r\n\u003c!--- Bug? Tell us what you were expecting. --\u003e\r\n\u003c!--- Improvement? Tell us how you’d like it to work. --\u003e\r\n\"Hi\" should be displayed in the console of the simple_server and \"Yes\" should be in the console of the simple_client.\r\nProcessing 3.4 has this behavior but Processing 3.5 (4.0a3) doesn't.\r\n\r\n## Current Behavior\r\n\u003c!--- Explain the difference from current behavior. --\u003e\r\nBoth \"Hi\" and \"Yes\" are displayed in the console of the simple_client.\r\n\r\n## Steps to Reproduce\r\n\u003c!--- Provide an unambiguous set of steps to reproduce. --\u003e\r\n\u003c!--- Including code will make it more likely to be fixed. --\u003e\r\n1. Execute the simple_server.\r\n2. Execute the simple_client.\r\n3. Click the simple_clinet window.\r\n\r\n## Your Environment\r\n\u003c!--- Include details about your environment. --\u003e\r\n\u003c!--- Thousands of people use Processing every day and may not have --\u003e \r\n\u003c!--- this issue, this might give us clues about why you’re seeing it. --\u003e\r\n* Processing version: Processing 3.5.4 (4.0a3)\r\n* Operating System and OS version: Windows 10 Pro, version 2004, build, 19041.804\r\n* Other information: Processing 3.4 seems to behave as expected.\r\n\r\n## Possible Causes / Solutions\r\n\u003c!--- Optionally, ideas on how to implement the change. --\u003e\r\n","author":{"url":"https://github.com/KouichiMatsuda","@type":"Person","name":"KouichiMatsuda"},"datePublished":"2021-03-08T11:15:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/6166/processing/issues/6166"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8580d17-17cf-6b64-3d27-d2f84e3bf1cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D132:2236DB:224ACB7:30313B2:696F6998 |
| html-safe-nonce | 9ffcf4120f367664396f4024c9fa03595862ebc66462d8e5b9d8f49bf9ba60e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTMyOjIyMzZEQjoyMjRBQ0I3OjMwMzEzQjI6Njk2RjY5OTgiLCJ2aXNpdG9yX2lkIjoiMjkwNTczMzE3OTI1Mjg5NDEwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04659b8e6412450a756db5baeafccca96590fb274558436f219191f4d547e8c4 |
| hovercard-subject-tag | issue:824459927 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing/6166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c76adb05b1c6da883fb90f2e15bdaf0470bc62768c4f50db9c8c4b2169c48d1c/processing/processing/issues/6166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c76adb05b1c6da883fb90f2e15bdaf0470bc62768c4f50db9c8c4b2169c48d1c/processing/processing/issues/6166 |
| og:image:alt | Description I wrote the following simple_server.pde and simple_client.pde using "processing.net.*;" but their behaviors seem to be strange. The simple_client.pde seems to receive "Hi" and "Yes". Am... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KouichiMatsuda |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd6be7b30d2e12704d0d9723ad4a7950f9e3ad8461efc40b5411aad62e847a89 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing git https://github.com/processing/processing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 7807399 |
| octolytics-dimension-repository_nwo | processing/processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7807399 |
| octolytics-dimension-repository_network_root_nwo | processing/processing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0bab932a9532ed9bc2e3e2614af9348ab39af6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width