165 | | 2. |
166 | | |
167 | | 3. |
168 | | |
| 165 | 2. Open two more terminal windows (they don't have to be big). |
| 166 | |
| 167 | On one window, start Netcat in server mode, listening on UDP port 22222: |
| 168 | |
| 169 | {{{ |
| 170 | nc -u -l 22222 |
| 171 | }}} |
| 172 | |
| 173 | On the other window, start Netcat in client mode, connecting to the UDP port 22222 on the localhost: |
| 174 | |
| 175 | {{{ |
| 176 | nc -u 127.0.0.1 22222 |
| 177 | }}} |
| 178 | |
| 179 | Test the chat-like connection by typing something in the Netcat client window. You should see the same characters appear on the server window. |
| 180 | |
| 181 | 3. Open another terminal window and build the UDPEcho module. |
| 182 | |
| 183 | {{{ |
| 184 | cd /netserv-root/apps/udpecho/modules |
| 185 | make |
| 186 | }}} |
| 187 | |
| 188 | 4. Install the UDPEcho module into the local NetServ router. |
| 189 | |
| 190 | {{{ |
| 191 | cd test |
| 192 | ./setup.sh |
| 193 | }}} |
| 194 | |
| 195 | You can switch to the !NetServ router window and see the log output of the installation process. |
| 196 | |
| 197 | 5. See UDPEcho in action! |
| 198 | |
| 199 | Type something in the Netcat client window and see what happens. |
| 200 | See also the debugging output from the UDPEcho module in the !NetServ router window. |
| 201 | |
| 202 | 6. Remove the UDPEcho module. |
| 203 | |
| 204 | {{{ |
| 205 | ./remove.sh |
| 206 | }}} |
| 207 | |
| 208 | Type something again in the Netcat client window and see what happens. |
| 209 | |
| 210 | |