File: README-SDLNET.txt

package info (click to toggle)
scorched3d 41.3dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 159,620 kB
  • ctags: 26,898
  • sloc: cpp: 110,179; xml: 36,743; ansic: 31,536; makefile: 4,321; sh: 3,708; perl: 1,522; java: 209; python: 188; sql: 146
file content (26 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

SDL_net 1.2

The latest version of this library is available from:
http://www.libsdl.org/projects/SDL_net/

This is an example portable network library for use with SDL.
It is available under the GNU Library General Public License.
The API can be found in the file SDL_net.h
This library supports UNIX, Windows, and BeOS.  MacOS support is being written.

The demo program is a chat client and server.
The chat client requires the sample GUI library available at:
http://www.libsdl.org/projects/GUIlib/
The chat client connects to the server via TCP, registering itself.
The server sends back a list of connected clients, and keeps the
client updated with the status of other clients.
Every line of text from a client is sent via UDP to every other client.

Note that this isn't necessarily how you would want to write a chat
program, but it demonstrates how to use the basic features of the 
network library.

Enjoy!
	-Sam Lantinga and Roy Wood