1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00
OpenDiablo2/d2networking
danhale-git 6367929688
Tidy remote_client_connection.go and resolve lint warnings (#522)
* Added automap.go stub

* Fixed bad error handling

* Handle header error from io.Copy()

* d2client.ClientConnection renamed to ServerConnection

Having two interfaces named ClientConnection in adjacent packages was a point of confusion for me. Renamed the client ClientConnection to ServerConnection since clients connect to servers and servers to clients.

* Fix lint warnings in remote_client_connection.go

* Tidying and lint warnings in remote_client_connection.go

* Switch statement in remote_client_connection.go now has matching blocks.

* RemoteClientConnection.serverListener refactor.

The switch statement is still repetitive but now it's separate. I think we would need generics to make it smaller.

* Receiver name change from l to r.

* Comments and other adjustments.

* Old commits

* Fixed bad error handling

* Cleaned up remote_client_connection.go

* SendPacketToClient removed.
2020-07-02 16:29:28 -04:00
..
d2client Tidy remote_client_connection.go and resolve lint warnings (#522) 2020-07-02 16:29:28 -04:00
d2netpacket D2networking resolve lint issues (#497) 2020-06-30 20:01:51 -04:00
d2server Tidy remote_client_connection.go and resolve lint warnings (#522) 2020-07-02 16:29:28 -04:00
client_listener.go D2networking resolve lint issues (#492) 2020-06-29 17:01:26 -04:00
doc.go D2networking resolve lint issues (#492) 2020-06-29 17:01:26 -04:00