add back connect.proto file (remove mistakenly)

This commit is contained in:
MaximZaitsev
2016-08-22 11:38:06 +03:00
parent 2088315ed1
commit 0827ec0c3b
2 changed files with 12 additions and 11 deletions
@@ -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;
}
-11
View File
@@ -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