|
Revision 1, 1.0 kB
(checked in by root, 4 years ago)
|
|
Initial import
|
| Line | |
|---|
| 1 | |
|---|
| 2 | SDL_net 1.2 |
|---|
| 3 | |
|---|
| 4 | The latest version of this library is available from: |
|---|
| 5 | http://www.libsdl.org/projects/SDL_net/ |
|---|
| 6 | |
|---|
| 7 | This is an example portable network library for use with SDL. |
|---|
| 8 | It is available under the GNU Library General Public License. |
|---|
| 9 | The API can be found in the file SDL_net.h |
|---|
| 10 | This library supports UNIX, Windows, and BeOS. MacOS support is being written. |
|---|
| 11 | |
|---|
| 12 | The demo program is a chat client and server. |
|---|
| 13 | The chat client requires the sample GUI library available at: |
|---|
| 14 | http://www.libsdl.org/projects/GUIlib/ |
|---|
| 15 | The chat client connects to the server via TCP, registering itself. |
|---|
| 16 | The server sends back a list of connected clients, and keeps the |
|---|
| 17 | client updated with the status of other clients. |
|---|
| 18 | Every line of text from a client is sent via UDP to every other client. |
|---|
| 19 | |
|---|
| 20 | Note that this isn't necessarily how you would want to write a chat |
|---|
| 21 | program, but it demonstrates how to use the basic features of the |
|---|
| 22 | network library. |
|---|
| 23 | |
|---|
| 24 | Enjoy! |
|---|
| 25 | -Sam Lantinga and Roy Wood |
|---|