Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

Other programming languages • Re: Basic on Raspberry

$
0
0
Should socket% and connected% each be closed after they are no longer used?
The socket is indeed closed (in PROCcleanup) although it's not strictly necessary since PROC_exitsockets will close any open sockets on exit anyway. connected% is just a temporary variable, once a connection is established it's copied into socket%.

Statistics: Posted by RichardRussell — Fri Mar 28, 2025 7:18 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles