History

modified OscIn.port() to return current port instead of assigned port

Ge Wang committed 3 years ago

Commit 4eae5871 parent a0976142 files · +8 −2Browse files

Showing the changes to src (2 of 2 files). Show all

Unified · Split

2 files
  1. src/core/chuck.cpp +1 −1
  2. src/core/ulib_opsc.cpp +7 −1
src/core/chuck.cpp+1−1
@@ -90,7 +90,7 @@ · 89 unmodified lines
9090
9191
9292 // chuck statics
93−const char ChucK::VERSION[] = "1.4.2.1-bleed-2023.02.20 (numchucks)";
93+const char ChucK::VERSION[] = "1.4.2.1-bleed-2023.02.21 (numchucks)";
9494 t_CKUINT ChucK::o_numVMs = 0;
9595 t_CKBOOL ChucK::o_isGlobalInit = FALSE;
9696 t_CKBOOL ChucK::enableSystemCall = FALSE;
src/core/ulib_opsc.cpp+7−1
@@ -310,7 +310,13 @@ public: · 309 unmodified lines
310310 }
311311
312312 int port(int port) { m_port = port; return m_port; }
313− int port() { return OscInServer::forPort(m_port)->port(); }
313+ int port()
314+ {
315+ // 1.4.2.1 (ge) simply return the current m_port
316+ return m_port;
317+ // previously (which returns an assigned port is always set)
318+ // return OscInServer::forPort(m_port)->port();
319+ }
314320
315321 private:
316322

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t