Derrick Hammer
|
605b6a6a09
|
fix: add lock to GetChallenge
|
2024-03-11 17:48:27 -04:00 |
Derrick Hammer
|
7173abb54f
|
fix: use Lock
|
2024-03-11 17:47:56 -04:00 |
Derrick Hammer
|
1ecbda1a54
|
fix: use RLock
|
2024-03-11 17:45:57 -04:00 |
Derrick Hammer
|
2bb558f878
|
refactor: add a rw mutex lock to all getter/setter methods
|
2024-03-11 17:40:09 -04:00 |
Derrick Hammer
|
cd50bf0b39
|
refactor: add a rw mutex lock to all getter/setter methods
|
2024-03-11 17:38:24 -04:00 |
Derrick Hammer
|
195abfdf20
|
fix: missing SetIP
|
2024-03-10 08:57:32 -04:00 |
Derrick Hammer
|
fc31653050
|
refactor: add SetIP and optionally return it if it exists in the ws peer
|
2024-03-10 08:54:22 -04:00 |
Derrick Hammer
|
4db7430abe
|
feat: implement GetIP as a net.Addr
|
2024-03-10 07:19:49 -04:00 |
Derrick Hammer
|
5f5b522e68
|
refactor: change GetIP to GetIPString
|
2024-03-10 07:16:37 -04:00 |
Derrick Hammer
|
397ed0d6ec
|
refactor: make no transport error an exported error we can test on
|
2024-03-05 15:01:22 -05:00 |
Derrick Hammer
|
238f78b556
|
testing: remove mocks for now
|
2024-01-29 00:23:42 -05:00 |
Derrick Hammer
|
13ca22d80e
|
fix: prevent channel closed panic
|
2024-01-15 19:34:11 -05:00 |
Derrick Hammer
|
1b6925c296
|
refactor: change abused to abuser
|
2024-01-15 13:50:04 -05:00 |
Derrick Hammer
|
7d34ac37db
|
fix: flag abused before closing
|
2024-01-15 13:40:41 -05:00 |
Derrick Hammer
|
944067522a
|
feat: add abused to peer so we can know when a peer has abused us and not log errors for them
|
2024-01-15 13:36:13 -05:00 |
Derrick Hammer
|
fc10a265a7
|
feat: implement GetIP
|
2024-01-15 11:15:11 -05:00 |
Derrick Hammer
|
883f50b198
|
feat: add incoming and outgoing peer blocking to handle abuse
|
2024-01-15 10:54:31 -05:00 |
Derrick Hammer
|
3d41119f74
|
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done
|
2024-01-13 11:22:01 -05:00 |
Derrick Hammer
|
1fe2940fc4
|
refactor: send every message in a coroutine and manage errors in a dedicated channel
|
2024-01-08 12:08:15 -05:00 |
Derrick Hammer
|
b41c763be8
|
refactor: add getter/setter for isConnected connectionURIs
|
2024-01-08 09:52:57 -05:00 |
Derrick Hammer
|
a785031255
|
refactor: add getter/setter for isConnected
|
2024-01-08 08:44:47 -05:00 |
Derrick Hammer
|
33e2ef0d61
|
test: need to generate mock for peer
|
2024-01-08 05:32:06 -05:00 |
Derrick Hammer
|
b8a38fde66
|
fix: dont return by ref
|
2024-01-07 06:51:40 -05:00 |
Derrick Hammer
|
8b2756caad
|
fix: need to pass by ref
|
2024-01-07 06:49:27 -05:00 |
Derrick Hammer
|
0028483817
|
refactor: use lowercase socket
|
2024-01-07 06:47:19 -05:00 |
Derrick Hammer
|
2e9b07c6bd
|
refactor: dont use pointers with interfaces
|
2024-01-07 06:47:01 -05:00 |
Derrick Hammer
|
52b7426a7a
|
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer
|
2024-01-07 06:33:32 -05:00 |
Derrick Hammer
|
8c29a284ce
|
feat: wip networking
|
2024-01-06 06:34:15 -05:00 |