Justin T
bc39ba8cee
update main
...
Update main to initialize connection with the database. Also, main now has some better output for where the flow of the program is.
2019-12-13 01:17:28 -06:00
Justin T
efa4e5396a
refactor project structure; protocol
...
Needed to change the project structure to avoid circular dependencies in the design. Encoding added to protocol package as it made more sense there.
2019-12-13 01:16:05 -06:00
Justin T
502b9078ca
WIP: database config & basic queries
...
Added config options for the various database settings. Working on some basic queries for logging a player in.
2019-12-13 01:13:25 -06:00
Justin T
54dbc6d16e
create connection w/ client & listen for data
...
added the call to send the packet HELLO which initializes the connection between client/server. Also added the ability to log incoming/outgoing packets.
2019-12-09 21:21:42 -06:00
Justin T
5936ed7370
return outgoing packet as string
...
adding a method for returning the bytes in an outgoing packets buffer as a string
2019-12-09 21:20:16 -06:00
Justin T
9e36231101
WIP: handle handshake packets
...
progress on handling the incoming handshake packets. mapping out a lot of crypto packets that i won't implement till later
2019-12-09 21:19:20 -06:00
Justin T
cefbaf1489
WIP: handle handshake packets
...
progress on composing responses to the incoming crypto packets
2019-12-09 21:18:05 -06:00
Justin T
007c2ef415
WIP: handling packets in scheduler
...
working on handling handshake packets and getting players logged in. this design may change if it gets too unbearable :P
2019-12-09 21:16:11 -06:00
Justin T
6202728fdc
update server to have config ref
...
added a reference to the config struct created in main so that config settings can be obtained throughout the server
2019-12-09 21:14:57 -06:00
Justin T
a3142047e5
update main
2019-12-09 21:13:49 -06:00
Justin T
31e7593c0e
update player models
...
updated the model for players to avoid circular dependencies in the project. Network is an interface for a players Session.
2019-12-09 21:13:34 -06:00
Justin T
81a4b2cc1b
update config
...
added config options for logging incoming and outgoing packets for debugging
2019-12-09 21:11:48 -06:00
Justin T
577e82e4a4
refactor incoming/outgoing packets
...
Updated the incoming & outgoing packets to take account for design changes elsewhere
2019-12-03 21:27:12 -06:00
Justin T
67d9267813
small updates & bug fix
...
add support for max connections per IP & fix a mutex error I introduced on accident.
2019-12-03 21:24:28 -06:00
Justin T
eefb549e2a
finish packet parsing & sending
...
finished the logic for parsing incoming packets. Also corrected/finished the methods for sending outgoing packets to a session
2019-12-03 21:19:27 -06:00
Justin T
e704042403
add support for 3 byte slices
...
Previous implementation didn't support the three byte encoded headers found in incoming packets
2019-12-03 21:14:51 -06:00
Justin T
2e28054c00
update main.go
...
update
2019-12-03 21:13:18 -06:00
Justin T
5c855bb1c9
config updated
...
added config option for max connections per IP
2019-12-03 21:12:36 -06:00
Justin T
d907c2c7e5
finished design of incoming packets
...
Finished the design for packets, as well as the means for reading/writing data from/to them.
2019-11-30 00:13:17 -06:00
Justin T
b943ce13c0
overhaul of packet parsing & updated sessions
...
Listen was updated to better parse incoming packets from sessions so that junk data is handled as well as clients disconnecting. Basic means of writing packets to a session were also implemented.
2019-11-30 00:11:13 -06:00
Justin T
94550fd2bb
Update vl64.go
2019-11-30 00:07:10 -06:00
Justin T
585e4ae708
update config
...
updated config to align with changes to the way the server struct was designed
2019-11-30 00:05:42 -06:00
Justin T
3392d310e4
small server fixes
...
fixed an issue with sessions not being removed from the slice of active connections when they disconnect.
2019-11-30 00:04:55 -06:00
Justin T
d341f2dacc
main.go
...
entry point to the application
2019-11-27 01:28:20 -06:00
Justin T
4eebf77ee6
WIP: incoming/outgoing packet design
...
Started implementing the way incoming packets will be represented. Also implemented some of the read functions that will be needed.
2019-11-27 01:26:36 -06:00
Justin T
d1b0d8f87f
base64 & vl64 encoding implemented
...
Added the encoders/decoders for FUSE-Base64 & VL64. Shout out to Puomi Wiki for their examples, some of my comments in code are straight from there.
2019-11-27 01:22:36 -06:00
Justin T
4a3167a96b
config support with yml
...
Added the ability to load configs from a yml file at startup
2019-11-27 01:20:58 -06:00
Justin T
31682d7af4
WIP: sessions, server, and reading incoming data
...
Wrote most of the server code that will be needed minus a few parts. Started work on Sessions and the way packets will be parsed and handled.
2019-11-27 01:19:31 -06:00
Justin T
b5b15984cc
basic layout of players
...
Setting up some basic structure for players and sessions
2019-11-27 01:18:02 -06:00
Justin T
4e4be5a9cf
Update .gitignore
...
update .gitignore
2019-11-27 01:14:02 -06:00
Justin T
bd2e25953d
Initial commit
2019-08-03 22:04:40 -05:00