| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ void setup() { | |||
| 16 | 16 | size(640, 360); | |
| 17 | 17 | // The background image must be the same size as the parameters | |
| 18 | 18 | // into the size() method. In this program, the size of the image | |
| 19 | - // is 650 x 360 pixels. | ||
| 19 | + // is 640 x 360 pixels. | ||
| 20 | 20 | bg = loadImage("moonwalk.jpg"); | |
| 21 | 21 | } | |
| 22 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,16 +31,16 @@ | |||
| 31 | 31 | import java.net.*; | |
| 32 | 32 | ||
| 33 | 33 | /** | |
| 34 | - * ( begin auto-generated from Server.xml ) | ||
| 35 | - * | ||
| 36 | - * A server sends and receives data to and from its associated clients | ||
| 37 | - * (other programs connected to it). When a server is started, it begins | ||
| 38 | - * listening for connections on the port specified by the <b>port</b> | ||
| 39 | - * parameter. Computers have many ports for transferring data and some are | ||
| 40 | - * commonly used so be sure to not select one of these. For example, web | ||
| 41 | - * servers usually use port 80 and POP mail uses port 110. | ||
| 42 | - * | ||
| 43 | - * ( end auto-generated ) | ||
| 34 | + * ( begin auto-generated from Server.xml ) | ||
| 35 | + * | ||
| 36 | + * A server sends and receives data to and from its associated clients | ||
| 37 | + * (other programs connected to it). When a server is started, it begins | ||
| 38 | + * listening for connections on the port specified by the <b>port</b> | ||
| 39 | + * parameter. Computers have many ports for transferring data and some are | ||
| 40 | + * commonly used so be sure to not select one of these. For example, web | ||
| 41 | + * servers usually use port 80 and POP mail uses port 110. | ||
| 42 | + * | ||
| 43 | + * ( end auto-generated ) | ||
| 44 | 44 | * @webref net | |
| 45 | 45 | * @usage application | |
| 46 | 46 | * @brief The server class is used to create server objects which send and receives data to and from its associated clients (other programs connected to it). | |
@@ -104,8 +104,7 @@ public Server(PApplet parent, int port) { | |||
| 104 | 104 | * Disconnect a particular client. | |
| 105 | 105 | * | |
| 106 | 106 | * ( end auto-generated ) | |
| 107 | - * | ||
| 108 | - * ( end auto-generated ) | ||
| 107 | + * @brief Disconnect a particular client. | ||
| 109 | 108 | * @webref server:server | |
| 110 | 109 | * @param client the client to disconnect | |
| 111 | 110 | */ | |
@@ -169,8 +168,7 @@ static public String ip() { | |||
| 169 | 168 | * Returns the next client in line with a new message. | |
| 170 | 169 | * | |
| 171 | 170 | * ( end auto-generated ) | |
| 172 | - * | ||
| 173 | - * ( end auto-generated ) | ||
| 171 | + * @brief Returns the next client in line with a new message. | ||
| 174 | 172 | * @webref server | |
| 175 | 173 | * @usage application | |
| 176 | 174 | */ | |
@@ -198,12 +196,11 @@ public Client available() { | |||
| 198 | 196 | * Disconnects all clients and stops the server. | |
| 199 | 197 | * | |
| 200 | 198 | * ( end auto-generated ) | |
| 201 | - * | ||
| 202 | 199 | * <h3>Advanced</h3> | |
| 203 | - * <p/> | ||
| 204 | 200 | * Use this to shut down the server if you finish using it while your applet | |
| 205 | 201 | * is still running. Otherwise, it will be automatically be shut down by the | |
| 206 | 202 | * host PApplet using dispose(), which is identical. | |
| 203 | + * @brief Disconnects all clients and stops the server. | ||
| 207 | 204 | * @webref server | |
| 208 | 205 | * @usage application | |
| 209 | 206 | */ | |
@@ -273,7 +270,6 @@ public void run() { | |||
| 273 | 270 | * Server object. | |
| 274 | 271 | * | |
| 275 | 272 | * ( end auto-generated ) | |
| 276 | - * | ||
| 277 | 273 | * @webref server | |
| 278 | 274 | * @brief Writes data to all connected clients | |
| 279 | 275 | * @param data data to write | |
| Back | FazBrowse Home | New Git URL |
0 commit comments