equal
deleted
inserted
replaced
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, MacOS Classic, MacOS X, |
|
11 BeOS and QNX. |
|
12 |
|
13 The demo program is a chat client and server. |
|
14 The chat client requires the sample GUI library available at: |
|
15 http://www.libsdl.org/projects/GUIlib/ |
|
16 The chat client connects to the server via TCP, registering itself. |
|
17 The server sends back a list of connected clients, and keeps the |
|
18 client updated with the status of other clients. |
|
19 Every line of text from a client is sent via UDP to every other client. |
|
20 |
|
21 Note that this isn't necessarily how you would want to write a chat |
|
22 program, but it demonstrates how to use the basic features of the |
|
23 network library. |
|
24 |
|
25 Enjoy! |
|
26 -Sam Lantinga and Roy Wood |
|
27 |
|