-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add client, game server, and basic authentication server (#19)
* add command line argument to choose to run as server vs. client * rename game_simulation.jl to simulate.jl * arrange imports in alphabetical order * add Sockets module to project files * allow only 3 clients for now * identify what (server/client) is running and where (host and port) * create function start_server_and_fill_room remove CLIENT_HOSTS, CLIENT_PORTS since they are not in our control becaue Sockets.connect method will automatically give us the bound TCPSocket * add function start_client, remove THIS_CLIENT_ID as it doens't matter when running the script (it is the server that must identify the client and not the script/client itself) * rename socket_peer_name to peername * rename start_server_and_fill_room to start_server, return nothing for start_server and start_client * add HTTP package to project files * use enum Actor instead of Bool IS_SERVER * rename server to game_server * use InetAddr instead of host and port separately * remove Actor and just do stuff in the if else * add basic auth server * add Base64 to project files * add credential validation * pass username and password arguments to start_client function
- Loading branch information
1 parent
f3b562b
commit 882ed89
Showing
3 changed files
with
195 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[deps] | ||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" | ||
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters