ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/init.C
Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 03:22:29 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.44: +1 -2 lines
Diff to previous 1.44
fix longstanding refcnt bug: socket was zereoing wrong flags field

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 02:43:04 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.43: +4 -5 lines
Diff to previous 1.43
very very aggressive tcp keepalive - tghis might time out connections in 4 seconds

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Mon Apr 2 18:55:22 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42
doh

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon Apr 2 18:54:00 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.41: +33 -22 lines
Diff to previous 1.41
find mss value for future use

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 15:44:47 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.40: +1 -0 lines
Diff to previous 1.40
- make face caching mandatory, and pester users to enable it
- implement rate-limiting, for images only right now
- implement and document output-rate command to set rate limit.
- default 1mbit.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 01:19:10 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.39: +1 -1 lines
Diff to previous 1.39
- send smooth faces automatically with their base face, anything else
  just complictaes everything and clients who want smoothing would
  requets the face anyways.
- this reduces the size of struct client considerably, from 300k to
  about 300k (whoops).

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Sun Mar 11 02:12:45 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.38: +0 -5 lines
Diff to previous 1.38
- MAJOR CHANGE
- you now need to use cfutil to install arches.
- former bigfaces are broken in the server
- bigfaces are no longer supported. at all.
- use face numbers instead of pointers
  * saves lotsa space
  * saves lotsa indirections
  * saves lots(?) cpu cycles
- completely rewrote face handling
- faces can now be added at runtime
- reload will add new faces
- this does not apply to animations
- use a hastable instead of binary search (faster) for faces
- face caching is broken
- facesets are gone
- server always reports MAX_FACES to any client who asks

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Tue Mar 6 19:02:36 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.37: +4 -15 lines
Diff to previous 1.37
clean up makefiles, add dummy pod.pm

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Tue Jan 23 01:05:18 2007 UTC (17 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.36: +2 -6 lines
Diff to previous 1.36
- avoid negative event priorities like the plague. they are actually
  worse because they introduce random memory corruption and endless
  loops and worse, if worse exists.
- aggressively swap out maps when #actives exceeds threshold
- sweep and cede after server tick
- increase player command handling priorities, just in case.
- fix a bug in mortal checking, this was the reason for the
  enourmous memory leaks in map-world.ext
- mark c++-side watchers as non-reentrant

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat Jan 20 13:47:17 2007 UTC (17 years, 5 months ago) by pippijn
Branch: MAIN
Changes since 1.35: +22 -22 lines
Diff to previous 1.35
comments

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon Jan 8 18:18:36 2007 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.34: +33 -0 lines
Diff to previous 1.34
- move most last_* values into socket, where they belong
- this actually saved a lot of space in the text segment,
  which might mean less complicated pointer accesses, because
  the data is no where it belongs, mostly.

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sun Jan 7 02:39:15 2007 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.33: +11 -15 lines
Diff to previous 1.33
""

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sat Jan 6 14:42:31 2007 UTC (17 years, 5 months ago) by pippijn
Branch: MAIN
Changes since 1.32: +1 -0 lines
Diff to previous 1.32
added some copyrights

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Wed Dec 27 05:32:26 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31
fix crash when flush destroys a socket

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Mon Dec 25 11:25:50 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.30: +21 -15 lines
Diff to previous 1.30
- small, but subtle, rewrite of object management
- perl will now keep attachable objects alive
- objects are now refcounted
- refcouts need to be tested explicitly (refcnt_chk)
- explicit destroy is required current
- explicit destroy asks "nicely" for the object to self destruct, if possible
- refcounts will be used during mortal killing
- minor bugfixes, optimisations etc.
- some former hacks removed.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Dec 22 16:34:00 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.29: +7 -8 lines
Diff to previous 1.29
- preliminary check in, stuff is rudimentarily working
- moved most of the player creation process into a perl coroutine
- changed internal design of player management to not reuse
  and morph the object in funny ways. should be safer and much
  nicer to handle.
- got rid of some annoying hacks, such as clear()
  (TODO: get rid of player_pod and other stuff now unnecessary?)

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Fri Dec 22 06:02:29 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.28: +2 -0 lines
Diff to previous 1.28
- add preliminary per-client coroutine support (I do not threaten, I act :)
- moved global events to cf::global

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 23:37:06 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27
- made state a per-client variable
  (that does not magically make state a per-client thing!)
- rename player->socket to player->ns. its not a good name for "client",
  but it is an historical artifact, and better than "socket".

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 06:12:37 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.26: +12 -8 lines
Diff to previous 1.26
- made client a first-class crossfire-perl object
  (its attachable), but perl support is missing.
- added some client events
- fixed reply not working after logout

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Dec 20 09:14:22 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25
- minor cleanups
- minor optimisations (in_player vs. is_player_inv)
- added P_PLAYER map flag
- some (dead) concept code

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sun Dec 17 19:14:00 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24
re-enable async command execution

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Sun Dec 17 19:07:23 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
thats the crash bug

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Sun Dec 17 00:25:44 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.22: +36 -1 lines
Diff to previous 1.22
overoptimise our sockets

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 21:40:26 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.21: +6 -9 lines
Diff to previous 1.21
- clean up some code
- fix some possible (minor) bugs
- use a bitset for anims_sent
- fix a memory leak
- removed dead code

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 03:08:26 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.20: +28 -41 lines
Diff to previous 1.20
- socket i/o is completely asynchronous now
- some command sare handled immediately
- others (most palying related commands) are queued
  for later (as of now synchronous) processing
- specifying a max queue length (in seconds) is possible, but disabled
- also add some syntax sugar for network code

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 19:59:20 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.19: +8 -9 lines
Diff to previous 1.19
the rename for sanity campaign hits
you died
- renamed stuff
- partially updated copyrights
- some cleanups

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 22:45:41 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.18: +2 -7 lines
Diff to previous 1.18
- implement event watcher autoncancellation on reload
- used it everywhere
- removed lots of compatibility cruft
  - configure does no longer check for mandatory unix functionality/headers
  - confgiure now runs much faster

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 21:46:34 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17
- write() is now independent of server ticks and will be done immediately
- get rid of CORK hack, it is no longer necessary

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 20:39:54 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16
- implement c++ interface to Event->io watchers
- cut number of write()'s the server does in half

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 04:30:33 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.15: +71 -138 lines
Diff to previous 1.15
- rewrote most of the socket loop code
- moved connection accept into tcp.ext
- no evil socket copying anymore,
  needs more cleanups

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 02:37:37 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.14: +58 -55 lines
Diff to previous 1.14
moar\! rewrite\!

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 01:21:58 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13
moar rewrite

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 01:12:35 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.12: +11 -7 lines
Diff to previous 1.12
(intermediate check-in for recoverability)

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 00:01:35 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.11: +2 -4 lines
Diff to previous 1.11
- further cleanup and rewrite
- fix a potential crash in "lock" and "mark" packets

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 02:55:51 2006 UTC (17 years, 6 months ago) by root
Branch: MAIN
Changes since 1.10: +15 -53 lines
Diff to previous 1.10
- medium decruftification
- medium cleanups
- make settings accessible to perl using cf::settings->mutator
  (completely untested)

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Mon Dec 11 19:46:47 2006 UTC (17 years, 6 months ago) by pippijn
Branch: MAIN
Changes since 1.9: +10 -49 lines
Diff to previous 1.9
removed #ifn?def WIN32 from all files

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Sep 20 21:53:50 2006 UTC (17 years, 9 months ago) by root
Branch: MAIN
Changes since 1.8: +3 -4 lines
Diff to previous 1.8
added many accessors and mutators to struct player, including *title* and (hint, hint) *own_title*

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 22:34:05 2006 UTC (17 years, 9 months ago) by root
Branch: MAIN
Changes since 1.7: +1 -7 lines
Diff to previous 1.7
indent

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 13:43:33 2006 UTC (17 years, 9 months ago) by root
Branch: MAIN
Changes since 1.6: +222 -205 lines
Diff to previous 1.6
indent

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Wed Aug 30 16:30:37 2006 UTC (17 years, 10 months ago) by root
Branch: MAIN
Changes since 1.5: +7 -7 lines
Diff to previous 1.5
remove compression support, intiialise perl earlier etc. etc.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 08:01:38 2006 UTC (17 years, 10 months ago) by root
Branch: MAIN
Changes since 1.4: +41 -41 lines
Diff to previous 1.4
expand initial tabs to spaces

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Mon Aug 21 07:13:32 2006 UTC (17 years, 10 months ago) by root
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3
workaorund for client mapscroll overflow

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Fri Aug 18 02:06:58 2006 UTC (17 years, 10 months ago) by root
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2
support health stats in an extensible way in map1

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Thu Aug 17 20:23:32 2006 UTC (17 years, 10 months ago) by root
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1
get rid of esrv_map_scroll and MapNewmapCmd, map update will handle it automatically

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:05 2006 UTC (17 years, 10 months ago) by elmex
Branch: MAIN
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rel-2_1: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a