Skip to content
Snippets Groups Projects
Commit e8381122 authored by Leonard's avatar Leonard
Browse files

server changes

parent 8529ce47
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,18 @@ package com.galaxytrucker.galaxytruckerreloaded.Server;
import com.galaxytrucker.galaxytruckerreloaded.Server.Database.Database;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
/**
* This class creates the game server and handles storing the data
*/
public class Server {
/** The database */
/**
* The database
*/
private Database database;
/**
......@@ -18,16 +24,27 @@ public class Server {
database.setup();
}
/**
* Client handler handles clients connected
*/
public void client_handler(Socket socket) {
}
/**
* Send some data
*
* @param stream - input stream of data to send
*/
public void sendPackets() {
public void sendPackets(InputStream stream) {
}
/**
* Receive some data
*
* @return outputstream of received data
*/
public void receivePackets() {
public OutputStream receivePackets() {
return null;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment