Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wpinet] Add simple web server #7527

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

PeterJohnson
Copy link
Member

@PeterJohnson PeterJohnson commented Dec 8, 2024

Example use:

WebServer.start(5800, Filesystem.getDeployDirectory());

TODO:

  • Generate pages for directory browsing
  • Support PUT and DELETE operations (deferred)
  • Fix Windows

Closes #2518

@PeterJohnson PeterJohnson requested a review from a team as a code owner December 8, 2024 21:51
@github-actions github-actions bot added the component: wpinet WPI networking library label Dec 8, 2024
@@ -80,6 +80,22 @@ public static synchronized void forceLoad() throws IOException {
*/
public static native void removePortForwarder(int port);

/**
* Create a web server at the given port. Note that local ports less than 1024 won't work as a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably add a note about which ports are open in an FMS setting to minimize cases of teams running into blocked ports at competition.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to just add a note to check the game manual. The ports can technically change year to year (Mainly because we can add more if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: wpinet WPI networking library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a simple File Server to wpiutil
3 participants