This repository has been archived by the owner on May 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated IPCPpacket and created PCP static class
IPCPpacket - packets now must implement byte[] header() PCP - class contains static util variables, like PORT - static subclasses contain version specific variables
- Loading branch information
1 parent
4926461
commit 18642f5
Showing
4 changed files
with
56 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* this is a school project under "The Unlicence". | ||
*/ | ||
package PCP; | ||
|
||
|
||
/** | ||
* static class utilities and most used values in the PCP protocol. | ||
* @author Jacopo_Wolf | ||
*/ | ||
public final class PCP | ||
{ | ||
|
||
/** | ||
* primary port to check for the server | ||
*/ | ||
public static final int PORT = 53101; | ||
|
||
|
||
/** | ||
* PCP-Minimal | ||
* @author Jacopo_Wolf | ||
*/ | ||
public static class Min | ||
{ | ||
/** | ||
* maximum lenght of a single package | ||
*/ | ||
public static final int MAX_PACKET_LENGHT = 2048; | ||
} | ||
|
||
|
||
// private constructor to avoid initialization | ||
private PCP(){} | ||
|
||
} |
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
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