Most of the modern games have features to enable multi-
play by TCP-IP. This is not very hard to implement
using the socket library under linux but as always the
different C implementations all have their own unique
way of communicating.
The communication should include a central server for
a game that lists other available servers. Also a
uniform way for LAN play with the server software
avaible with the binaries.
Do you think it an improvement to you API to include
generalised communication between games:
- comm_init_server(server_id, game_id)
Initiate a new server of the game to the central
server.
- comm_poll_clients
Server scans for new clients.
- comm_close_server
Stop the server.
- comm_available_servers(game_id)
Check the central server for a list of servers of
this specific type of game.
- comm_init_client(to_server)
Logon to a specific server.
- comm_close_client
Logoff a session on the current server.
- comm_message(link)
Send a message to the server or to a client.
- comm_poll_message
Scan for messages.
- comm_init_central(game_id)
Initiate a central server.
- comm_poll_server
Scan for servers that wish to join.
- comm_close_central
Close the central server
Logged In: YES
user_id=113920
Communication support will probably never be added to the
core library. You can use instead several specialized libraries
that are known to work well alongside Allegro.
See on http://www.allegro.cc, in the category
Resource Directory->Libraries->Network