ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 23:40:01 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.47: +1 -0 lines
Diff to previous 1.47
copyright update 2018

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Wed Nov 16 23:42:01 2016 UTC (7 years, 5 months ago) by root
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46
copyright update 2016

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Mon Oct 29 23:55:54 2012 UTC (11 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-3_1
Changes since 1.45: +5 -5 lines
Diff to previous 1.45
trailing space removal

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Jan 3 11:25:32 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44
update copyrights to 2012

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Sat Apr 23 04:56:50 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
update copyright to 2011

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Thu Apr 8 20:05:35 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-3_0
Changes since 1.42: +0 -1 lines
Diff to previous 1.42
remove support for toggleextendedtext

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 01:04:44 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.41: +1 -1 lines
Diff to previous 1.41
update copyright for up to 2010

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Tue Nov 10 01:20:41 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_92, rel-2_93
Changes since 1.40: +6 -6 lines
Diff to previous 1.40
indent

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 13:05:56 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_90
Changes since 1.39: +0 -9 lines
Diff to previous 1.39
make effectively static symbols actually static, part 3

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Mon Oct 12 14:00:58 2009 UTC (14 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_81, rel-2_82
Changes since 1.38: +7 -6 lines
Diff to previous 1.38
clarify license

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Tue May 6 16:55:26 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_54, rel-2_55, rel-2_56, rel-2_6, rel-2_61, rel-2_7, rel-2_71, rel-2_72, rel-2_73, rel-2_74, rel-2_75, rel-2_76, rel-2_77, rel-2_78, rel-2_79, rel-2_80
Changes since 1.37: +1 -1 lines
Diff to previous 1.37
update copyright

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Tue May 6 16:44:54 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.36: +0 -1 lines
Diff to previous 1.36
*** empty log message ***

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue Apr 22 07:01:47 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_52, rel-2_53
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
see Changes

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Thu Nov 8 19:43:25 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_32, rel-2_4, rel-2_41, rel-2_42, rel-2_43, rel-2_5
Changes since 1.34: +4 -4 lines
Diff to previous 1.34
update copyrights and other minor stuff to deliantra

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Mon Jul 30 02:03:02 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-2_2, rel-2_3
Changes since 1.33: +0 -2 lines
Diff to previous 1.33
big semantic change

- old server and crossfire did
  update/draw maps
  check for player commands, move players and monsters
  flush sockets

- new server does
  check for player commands, move players and monsters
  update/draw maps
  flush sockets

I have zero idea why the old code didn't do it this way. the net effect is
that there is a guarenteed delay of one tick between an issued command and
the player seeing its execution. The same for monster movements.

That is, the new ordering reduces "lag" by a constant 120ms, which is
immense, and can be felt immediately.

This is a change I wanted to do for a long time.

Apart from that, the tcp send code has been simplified and underwent some
further tuning, leading to an even more accurate congestion management.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Thu Jul 26 00:27:08 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.32: +0 -3 lines
Diff to previous 1.32
very very preliminary, non-working sound framework

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:00:18 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.31: +11 -12 lines
Diff to previous 1.31
- upgrade crossfire trt to the GPL version 3 (hopefully correctly).
- add a single file covered by the GNU Affero General Public License
  (which is not yet released, so I used the current draft, which is
  legally a bit wavy, but its likely better than nothing as it expresses
  direct intent by the authors, and we can upgrade as soon as it has been
  released).
  * this should ensure availability of source code for the server at least
    and hopefully also archetypes and maps even when modified versions
    are not being distributed, in accordance of section 13 of the agplv3.

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 13:05:02 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.30: +0 -2 lines
Diff to previous 1.30
- improve observe
- remove more cruft code
- archetype loading almost works again, reloading probbaly still borked.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Sun Jun 3 17:05:36 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.29: +2 -3 lines
Diff to previous 1.29
- remove slow and unneeded cruft code from map1.
- decouple map display/stats update from ob (use pl->obsere instead)

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Mon May 28 21:15:56 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.28: +22 -0 lines
Diff to previous 1.28
- update copyrights in .h files, where applicable
- rename preprocess to genkeywords

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 04:25:30 2007 UTC (17 years ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.27: +0 -1 lines
Diff to previous 1.27
This is the first rough cut of the skill use system (use the STABLE tag).

Details will likely change, and combat skills do not work very well, but
it works quite well.

Players no longer have a shoottype or range slots, instead, each player
has these members:

   combat_skill/combat_ob  the currently selected skill (and weapon)
                           for direct attacks.
   ranged_skill/ranged_ob  the currently selected ranged skill (and
                           bow/spell/item)
   golem                   the currently-controlled golem, if any.

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Wed Apr 25 18:47:50 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.26: +0 -1 lines
Diff to previous 1.26
rewrote output buffer handling. the new system:
- outputs messages immediately.
- suppresses following duplicates.
- enforces a minimum setting.
- is, as usual, faster and leaner.

the only problem is that the code worked out of the box, which is not reassuring.

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Apr 23 19:10:17 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.25: +1 -0 lines
Diff to previous 1.25
implement ex command support to quickly retrieve item descriptions

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sun Mar 18 03:05:40 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24
- reduce default output-sync to less than a second
- output-sync command now uses seconds as unit, not
  something users cannot even know.
- lots of useless const adjustments.

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 15:44:47 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
- 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.23 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 00:04:58 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.22: +0 -2 lines
Diff to previous 1.22
- rewrote smooth face handling, as a side-effect, smoothing seems to work
  again and smooth faces can be reloaded.
- the server now sends the full animation for an object the first time
  it is seen, this uses slightly more bandwidth initially, but avoids
  the flickering for objects change their face later.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 06:12:36 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.21: +1 -2 lines
Diff to previous 1.21
- 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.21 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 04:58:04 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.20: +1 -0 lines
Diff to previous 1.20
- separate all comamnds into immediate/socket-level and queued/player-level
- clean up player command handling, handle up to 8 commands/tick

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Dec 16 03:08:26 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.19: +0 -3 lines
Diff to previous 1.19
- 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.19 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 19:59:20 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.18: +22 -22 lines
Diff to previous 1.18
the rename for sanity campaign hits
you died
- renamed stuff
- partially updated copyrights
- some cleanups

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 03:53:41 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17
streamlined packet processing a bit, experimentally enabled more immediate paclets

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

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

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

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

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 01:59:10 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12
rewrite phase one finished

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

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

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

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 18:08:01 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.8: +0 -5 lines
Diff to previous 1.8
started simplifying network code

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Mon Oct 2 15:28:35 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.7: +0 -3 lines
Diff to previous 1.7
nuke metaserver code

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sat Sep 16 22:24:12 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
mapstruct => maptile
removed many ytypedefs in favor of structure tags

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Thu Aug 17 20:23:31 2006 UTC (17 years, 9 months ago) by root
Branch: MAIN
Changes since 1.5: +0 -2 lines
Diff to previous 1.5
get rid of esrv_map_scroll and MapNewmapCmd, map update will handle it automatically

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:02 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sun Jun 11 15:02:15 2006 UTC (17 years, 11 months ago) by root
Branch: MAIN
CVS Tags: LAST_C_VERSION, difficulty_fix_merge_060810_2300
Branch point for: difficulty_fix
Changes since 1.3: +1 -0 lines
Diff to previous 1.3
implement 'ext' packet for extensions to hook directly into the protocol

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun May 21 23:46:38 2006 UTC (17 years, 11 months ago) by root
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2
Problem: server sends out 2 tcp packets per command (e.g. a 2-byte packet
+ a 10 byte packet for a small map1a command).

Solution: rewrite that thing

Workaround: on linux, uncork and cork again just before sleeping for the next
tick, that solves the problem without hackery or rewriting it. This cuts
the # of packets send by at least one half.

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Apr 17 06:11:39 2006 UTC (18 years, 1 month ago) by root
Branch: MAIN
Changes since 1.1: +6 -6 lines
Diff to previous 1.1
first round of mapinfo command and response, rationalised the coordinate system

Revision 1.1.1.2 - (view) (download) (annotate) - [select for diffs] (vendor branch)
Wed Feb 22 18:01:58 2006 UTC (18 years, 2 months ago) by elmex
Branch: UPSTREAM
CVS Tags: UPSTREAM_2006_02_22, UPSTREAM_2006_03_15
Changes since 1.1.1.1: +5 -6 lines
Diff to previous 1.1.1.1 , to next main 1.48
cvs -z7 -d:ext:elmex@cvs.schmorp.de:/schmorpforge import cf.schmorp.de UPSTREAM UPSTREAM_2006_02_22

Revision 1.1.1.1 - (view) (download) (annotate) - [select for diffs] (vendor branch)
Fri Feb 3 07:12:50 2006 UTC (18 years, 3 months ago) by root
Branch: UPSTREAM
CVS Tags: UPSTREAM_2006_02_03
Changes since 1.1: +0 -0 lines
Diff to previous 1.1
initial import

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Fri Feb 3 07:12:50 2006 UTC (18 years, 3 months ago) by root
Branch: MAIN
Branch point for: UPSTREAM
Initial revision

Convenience Links

Links to HEAD: (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