Directory socket/

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

[root]/socket

Lines of Code

socket/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 545 (100.0%) 11279 (100.0%) 20.6
mwedel 73 (13.4%) 2496 (22.1%) 34.1
akirschbaum 136 (25.0%) 2250 (19.9%) 16.5
aaron_baugher 3 (0.6%) 2114 (18.7%) 704.6
ryo_saeba 167 (30.6%) 1722 (15.3%) 10.3
anmaster 36 (6.6%) 1527 (13.5%) 42.4
partmedia 87 (16.0%) 748 (6.6%) 8.5
silvernexus 15 (2.8%) 157 (1.4%) 10.4
kbulgrien 14 (2.6%) 118 (1.0%) 8.4
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

silvernexus 2020-01-16 16:40 Rev.: 21086

Replace assertion of non-null cmd in handle_cmd.
Fuzz testing produced a scenario where a null command was generated out of strtok_r in handle_client

9 lines of code changed in 1 file:

  • socket: loop.c (+9 -1)
partmedia 2019-12-27 01:33 Rev.: 21066

Do not send upditem for unsent items

Sometimes, we try to update an item that we haven't sent to the client.
Don't! This can happen, for example, when a button under the floor gets
toggled, but objects under floor tiles are generally not sent. There are
some other places where this happens that we haven't tracked down, but
in general, just don't.

7 lines of code changed in 1 file:

  • socket: item.c (+7 -5)
partmedia 2019-12-27 01:21 Rev.: 21065

Improve findsmooth warning

Try to find a smoothing face, or the default smoothing face. If this
fails, set NS_FACESENT_SMOOTH so we don't try to send it again.

Failures are usually due to map makers changing the face of a ground
tile, but forgetting to unset smoothlevel.

10 lines of code changed in 1 file:

  • socket: request.c (+10 -6)
partmedia 2019-12-16 15:29 Rev.: 21053

Stop logging normal conditions as errors

5 lines of code changed in 2 files:

  • socket: loop.c (+3 -1), lowlevel.c (+2 -2)
silvernexus 2019-12-04 19:37 Rev.: 21051

Defererence pl->contr once in draw_client_map2, and assume it will not change in the middle.

26 lines of code changed in 1 file:

  • socket: request.c (+26 -24)
silvernexus 2019-12-04 19:04 Rev.: 21050

Silence warning from snprintf overflow potential.

1 lines of code changed in 1 file:

  • socket: request.c (+1 -1)
silvernexus 2019-12-04 18:27 Rev.: 21049

Reduce dereferences in draw_client_map2

6 lines of code changed in 1 file:

  • socket: request.c (+6 -3)
silvernexus 2019-12-03 18:49 Rev.: 21048

Make draw_client_map2 a static function, since it is used only in request.c.

1 lines of code changed in 1 file:

  • socket: request.c (+1 -1)
silvernexus 2019-12-01 11:15 Rev.: 21044

Add amount over to message for ticks longer than server tick time.

1 lines of code changed in 1 file:

  • socket: loop.c (+1 -1)
partmedia 2019-11-27 17:16 Rev.: 21035

Add warning about failing to initialize curl

2 lines of code changed in 1 file:

  • socket: metaserver.c (+2)
partmedia 2019-08-31 10: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 10: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 10: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 10:15 Rev.: 20989

Remove unused writefds

3 lines of code changed in 1 file:

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

Refactor game loop

5 lines of code changed in 1 file:

  • socket: loop.c (+5 -18)
partmedia 2019-08-10 16: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 13:57 Rev.: 20929

Refactor

21 lines of code changed in 1 file:

  • socket: init.c (+21 -18)
partmedia 2019-08-09 13: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 01:24 Rev.: 20698

Lower socket error severity

2 lines of code changed in 1 file:

  • socket: lowlevel.c (+2 -2)
partmedia 2019-01-14 09: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 00: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 14: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 15:07 Rev.: 20580

Print more useful error

6 lines of code changed in 1 file:

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

Increase metaserver message verbosity

1 lines of code changed in 1 file:

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

Refactor metaserver form building

30 lines of code changed in 1 file:

  • socket: metaserver.c (+30 -29)
silvernexus 2018-01-21 12: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 10: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 00: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-27 23: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 20: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 18: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 22: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 19: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 19: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-29 23: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 15: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 15: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 14: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 16: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 16:11 Rev.: 20019

Clean up command dispatch logic

71 lines of code changed in 1 file:

  • socket: loop.c (+71 -84)

(296 more)

Generated by StatSVN 0.7.0