How do you make a server log in code? I'm completely new to java and I was wondering how for my project.
Printable View
How do you make a server log in code? I'm completely new to java and I was wondering how for my project.
Try learning the basics first before going to more complicated stuff =/
It would involve sending packets, then the server would obviously recieve them, and do a MySQL call if you're talking about loggin on via a client otherwise it would depend on how you're going to store the login details, on the project itself or an external database, in which case a simple SQL query would do. Anyways, as stated above, learn the basics first, don't even jump into something as dificult as a game server without having intermediate experience in a language.
As Chronologic said. There's no point in just jumping into complicated stuff such as a login system when you don't even know the basics. Go to www.java.sun.com and look at some tutorials there, or just search them up on Google.
Best of Luck!
Can someone please post how to convert a decrypted login packet into a java code
Start off by revising this code.
Please note this is not my code I typed it into notepad from the JAVA site, I did not copy and paste. I copied it by typing it up for learning issues only. That's why I haven't released it.
JAVA Code.
Tasks:Code:/**
* The HelloWorldApp class implents an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Displays the string
}
}
1. Change the HelloWorldApp.java program so that it displays Hola Mundo! instead of Hello World!.
2. You can find a slightly modified version of HelloWorldApp here: HelloWorldApp2.java
The program has an error. Fix the error so that the program successfully compiles and runs. What was the error?
Questions:
1. When you compile a program written in the Java programming language, the compiler converts the human-readable source file into platform-independent code that a Java Virtual Machine can understand. What is this platform-independent code called?
2. Which of the following is not a valid comment:
a. /** comment */
b. /* comment */
c. /* comment
d. // comment
3. What's the first thing you should check if you see the following error at runtime:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp.java.
4. What is the correct signature of the main method?
5. When declaring the main method, which modifier must come first, public or static?
6. What parameters does the main method define?
Check your answers.
/Synta[X]\
EDIT: only a connection accepter
once I have got that how do I get the log in code with decrypted packets?