add back connect.proto file (remove mistakenly)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
message ConnectionRequest {
|
||||
repeated int32 ipValues = 1;
|
||||
int32 port = 2;
|
||||
}
|
||||
|
||||
message ConnectionResponse {
|
||||
int32 uid = 1;
|
||||
int32 code = 2;
|
||||
}
|
||||
@@ -1,19 +1,8 @@
|
||||
import Exceptions.InactiveCarException
|
||||
import car.client.Client
|
||||
import io.netty.bootstrap.ServerBootstrap
|
||||
import io.netty.buffer.Unpooled
|
||||
import io.netty.channel.nio.NioEventLoopGroup
|
||||
import io.netty.channel.socket.nio.NioServerSocketChannel
|
||||
import io.netty.handler.codec.http.*
|
||||
import objects.Car
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.util.*
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
/**
|
||||
* Created by user on 7/6/16.
|
||||
*/
|
||||
|
||||
val timeDeltaToDrop = 600000//time in ms. if car is inactive more than this time, server drop session with car
|
||||
val carServerPort: Int = 7925
|
||||
val webServerPort: Int = 7926
|
||||
|
||||
Reference in New Issue
Block a user