Commit Graph

14 Commits

Author SHA1 Message Date
Gergely POLONKAI
f44b1ac6d8 Renamed client_callback() to wmud_client_callback()
Renamed client_callback() to follow naming conventions.

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:36:43 +01:00
Gergely POLONKAI
42e0254457 Refactored wmud_client_close()
Removed the error checking TODO comment from wmud_client_close()
as g_socket_close() doesn't necessarily needs to be checked for errors.

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:34:49 +01:00
Polonkai Gergely
f92c9f5ade Created wmud_player_auth() 2012-03-23 10:39:18 +00:00
Polonkai Gergely
9cdab465f1 Added password requesting 2012-03-23 10:05:51 +00:00
Polonkai Gergely
cf01fddc15 Moved MAX_RECV_LEN into config.h 2012-03-22 18:57:48 +00:00
Polonkai Gergely
c054543641 Changed log level of "Connection closed" messages to INFO
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-22 18:45:45 +01:00
Gergely Polonkai (W00d5t0ck)
5aa4056633 Made this commit on a wrong branch...
added basic player handling method (no login yet)
2012-03-22 18:34:39 +01:00
Polonkai Gergely
63c37a8791 Minor modifications and code cleaning
* Created a wmud_types.h file to hold all the basic data types used by wMUD
* Redefined wmud_db_init() so error reporting will be possible
2012-03-22 09:49:19 +00:00
Gergely POLONKAI
71ffb83626 Player data processing, minor changes
* Added .anjuta and tags file to .gitignore
* Added new client states
* Moved client connection closing to a separate function
* Added conditional processing of client buffer depending on client state
* Created the basic player structure

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-21 16:07:02 +01:00
Polonkai Gergely
be3e17fd07 Added wmud_client_send() and a client state field.
* The wmudCLient struct now has a state field, which indicates the current
  state of the client (we are waiting her to log in, or to enter a command,
  etc.)
* Created the wmud_client_send() function to send formatted strings to a client
2012-03-14 19:03:54 +00:00
Polonkai Gergely
74fe14660a Added a basic (non-working) command interpreter.
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:22:22 +01:00
Polonkai Gergely
9854290799 Added game client data parsing
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 00:42:00 +01:00
Polonkai Gergely
21a7603f4c Created the wmudClient struct
Created the wmudClient struct to store data of connected clients.
2012-03-12 22:52:43 +00:00
Polonkai Gergely
73ffc4a8fb Moved networking code to networking.[ch] 2012-03-12 12:55:53 +00:00