Directory socket/

Total Files:
12
Deleted Files:
2
Lines of Code:
7474

[root]/socket

Lines of Code

socket/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 534 (100.0%) 11211 (100.0%) 20.9
mwedel 73 (13.7%) 2496 (22.3%) 34.1
akirschbaum 136 (25.5%) 2250 (20.1%) 16.5
aaron_baugher 3 (0.6%) 2114 (18.9%) 704.6
ryo_saeba 167 (31.3%) 1722 (15.4%) 10.3
anmaster 36 (6.7%) 1527 (13.6%) 42.4
partmedia 82 (15.4%) 724 (6.5%) 8.8
kbulgrien 14 (2.6%) 118 (1.1%) 8.4
silvernexus 9 (1.7%) 113 (1.0%) 12.5
gros 2 (0.4%) 93 (0.8%) 46.5
quinet 7 (1.3%) 27 (0.2%) 3.8
kstenger 2 (0.4%) 20 (0.2%) 10.0
cavesomething 1 (0.2%) 4 (0.0%) 4.0
kfitzner 2 (0.4%) 3 (0.0%) 1.5

Most Recent Commits

partmedia 2019-08-31 11:25 Rev.: 20993

Sleep in select() instead of usleep()

This allows us to handle commands from the client as soon as they
arrive, reducing the command-handling latency.

58 lines of code changed in 1 file:

  • socket: loop.c (+58 -53)
partmedia 2019-08-31 11:25 Rev.: 20992

Add separate loop to send updates to player

Now do_server() only needs to handle input from the clients. Periodic
updates are handled by send_player_updates().

53 lines of code changed in 1 file:

  • socket: loop.c (+53 -32)
partmedia 2019-08-31 11:24 Rev.: 20991

Stop double-subtracting player speed

Player speed is subtracted in do_server() when commands are processed
from the client. It is subtracted again in process_events(), because
players are just objects. This means that even when players are sitting
around, a command might not be processed immediately because the player
used up all their speed in process_events().

Player objects now process_object() at an effective speed of 1.0, as
long as they didn't consume all of their speed handling commands. This
allows the first command to always be processed immediately and reduces
latency.

1 lines of code changed in 1 file:

  • socket: request.c (+1 -1)
partmedia 2019-08-31 11:15 Rev.: 20989

Remove unused writefds

3 lines of code changed in 1 file:

  • socket: loop.c (+3 -5)
partmedia 2019-08-31 11:14 Rev.: 20988

Refactor game loop

5 lines of code changed in 1 file:

  • socket: loop.c (+5 -18)
partmedia 2019-08-10 17:16 Rev.: 20935

Add login message for new characters with accounts

4 lines of code changed in 1 file:

  • socket: request.c (+4)
partmedia 2019-08-09 14:57 Rev.: 20929

Refactor

21 lines of code changed in 1 file:

  • socket: init.c (+21 -18)
partmedia 2019-08-09 14:57 Rev.: 20928

Remove manual output socket buffer handling

Our manual buffer code doesn't handle partial writes. While logging in a
client, this sometimes causes the server to skip the tail of a partial
write, resulting in corrupt data being sent to the client.

Instead of handling this issue ourselves, grow the OS output socket
buffer to SOCKETBUFSIZE and disconnect the client if this buffer ever
gets filled, consistent with current behavior, only now it also works
during login.

27 lines of code changed in 3 files:

  • socket: init.c (+1 -4), loop.c (-16), lowlevel.c (+26 -134)
partmedia 2019-01-28 02:24 Rev.: 20698

Lower socket error severity

2 lines of code changed in 1 file:

  • socket: lowlevel.c (+2 -2)
partmedia 2019-01-14 10:59 Rev.: 20692

Add option to always enable HP bars

The new 'always_show_hp' server option enables accurate HP bars for all
living players and monsters, as if a high-level 'probe' spell was always
in effect.

Sponsored by: Titus
Tracker: feature-requests/250

22 lines of code changed in 1 file:

  • socket: request.c (+22 -11)
silvernexus 2018-12-23 01:20 Rev.: 20616

Refactor spell_client_use to utilize a switch statement instead of six ifs.

19 lines of code changed in 1 file:

  • socket: request.c (+19 -18)
partmedia 2018-09-01 15:59 Rev.: 20583

Make messages from metaserver errors

1 lines of code changed in 1 file:

  • socket: metaserver.c (+1 -1)
partmedia 2018-08-18 16:07 Rev.: 20580

Print more useful error

6 lines of code changed in 1 file:

  • socket: metaserver.c (+6 -2)
partmedia 2018-08-18 16:07 Rev.: 20579

Increase metaserver message verbosity

1 lines of code changed in 1 file:

  • socket: metaserver.c (+1 -4)
partmedia 2018-08-18 16:06 Rev.: 20578

Refactor metaserver form building

30 lines of code changed in 1 file:

  • socket: metaserver.c (+30 -29)
silvernexus 2018-01-21 13:55 Rev.: 20550

Reorder conditions to prevent segfault if pl is null in esrv_remove_spell.
Identified by CppCheck

4 lines of code changed in 1 file:

  • socket: request.c (+4 -3)
partmedia 2017-06-02 11:49 Rev.: 20378

Use correct function to get region name

1 lines of code changed in 1 file:

  • socket: sounds.c (+1 -4)
partmedia 2017-06-02 01:06 Rev.: 20376

Add missing region null check

Reported by: Nixtarma

4 lines of code changed in 1 file:

  • socket: sounds.c (+4 -1)
partmedia 2017-05-28 00:00 Rev.: 20361

Play region music if a map doesn't have music

Update background music in more cases where the player moves due to
entering a map, teleporting, spells, or other means.

15 lines of code changed in 1 file:

  • socket: sounds.c (+15)
partmedia 2017-05-18 21:28 Rev.: 20350

Improve password hashing interface functions

1 lines of code changed in 1 file:

  • socket: request.c (+1 -1)
partmedia 2016-08-03 19:30 Rev.: 20301

Fix overflows by using calloc() correctly

1 lines of code changed in 1 file:

  • socket: loop.c (+1 -1)
partmedia 2015-12-09 23:24 Rev.: 20143

Log messages that are broadcast to all players

1 lines of code changed in 1 file:

  • socket: info.c (+1)
partmedia 2015-12-02 20:18 Rev.: 20116

Shut down normally after receiving SIGINT

7 lines of code changed in 1 file:

  • socket: loop.c (+7)
partmedia 2015-12-02 20:18 Rev.: 20115

Ignore SIGPIPE instead of using MSG_NOSIGNAL

1 lines of code changed in 1 file:

  • socket: lowlevel.c (+1 -1)
mwedel 2015-11-30 00:50 Rev.: 20110

Change strerror_local() to strerror()

1 lines of code changed in 1 file:

  • socket: init.c (+1 -1)
partmedia 2015-11-29 16:51 Rev.: 20109

Prevent client disconnect from raising SIGPIPE

1 lines of code changed in 1 file:

  • socket: lowlevel.c (+1 -1)
partmedia 2015-11-29 16:51 Rev.: 20107

Remove unnecessary header checks

16 lines of code changed in 5 files:

  • socket: init.c (+3 -12), loop.c (+3 -12), metaserver.c (+5 -5), request.c (+2 -9), requestinfo.c (+3 -12)
partmedia 2015-10-26 15:55 Rev.: 20021

Replace strsep(3) with portable strtok_r(3)

7 lines of code changed in 2 files:

  • socket: loop.c (+2 -2), request.c (+5 -4)
partmedia 2015-10-25 17:11 Rev.: 20020

Use strsep(3) in version command handler

13 lines of code changed in 1 file:

  • socket: request.c (+13 -16)
partmedia 2015-10-25 17:11 Rev.: 20019

Clean up command dispatch logic

71 lines of code changed in 1 file:

  • socket: loop.c (+71 -84)
ryo_saeba 2015-10-25 12:40 Rev.: 20018

Fix for #811: Server crashes when handling certain invalid player commands.

71 lines of code changed in 4 files:

  • socket: image.c (+10 -2), item.c (+5), loop.c (+5), request.c (+51)
partmedia 2015-05-28 12:16 Rev.: 19980

Clean up some log messages

2 lines of code changed in 1 file:

  • socket: request.c (+2 -2)
partmedia 2015-04-04 23:14 Rev.: 19894

Replace uses of strerror_local() with strerror(3)

13 lines of code changed in 3 files:

  • socket: init.c (+6 -7), loop.c (+2 -4), lowlevel.c (+5 -9)
ryo_saeba 2015-03-01 12:28 Rev.: 19825

Correctly initialise value.

1 lines of code changed in 1 file:

  • socket: init.c (+1)
ryo_saeba 2015-02-01 09:46 Rev.: 19764

Fix documentation.

0 lines of code changed in 1 file:

  • socket: info.c (-2)
partmedia 2014-06-15 08:47 Rev.: 19561

Rename a few confusing account functions

4 lines of code changed in 1 file:

  • socket: request.c (+4 -4)
partmedia 2014-06-15 08:47 Rev.: 19560

Improve error messages and annotate code

8 lines of code changed in 1 file:

  • socket: request.c (+8 -5)
partmedia 2014-06-06 17:54 Rev.: 19531

Remove automatic prototype generation with cproto

Obtained from: Tolga Dalman

0 lines of code changed in 1 file:

  • socket: Makefile.am (-3)
partmedia 2014-06-06 17:31 Rev.: 19530

Clean up system headers.

8 lines of code changed in 2 files:

  • socket: init.c (+4), loop.c (+4)
partmedia 2014-06-06 17:30 Rev.: 19529

Clean up standard C headers.

87 lines of code changed in 10 files:

  • socket: image.c (+8 -5), info.c (+6 -4), init.c (+10 -6), item.c (+9 -5), loop.c (+9 -7), lowlevel.c (+8 -4), metaserver.c (+8 -4), request.c (+9 -7), requestinfo.c (+13 -7), sounds.c (+7 -3)

(286 more)

Generated by StatSVN 0.7.0