void function ( int arg0 ) { tcp . arg0 = arg0 ; }
if the specified amount of time passes without receiving an object over tcp , the connection is considered closed . when a tcp socket is closed normally , the remote end is notified immediately and this timeout is not needed . however , if a socket is closed abnormally eg , power loss , kryonet uses this timeout to detect the problem . the timeout should be set higher than the #setkeepalivetcp int tcp keep alive for the remote end of the connection . the keep alive ensures that the remoteend of the connection will be constantly sending objects , and setting the timeout higher than the keep alive allows for network latency . set to zero to disable . defaults to 12000 . concode_field_sep TcpConnection tcp concode_elem_sep UdpConnection udp concode_elem_sep int lastPingID concode_elem_sep KryoNetException lastProtocolError concode_elem_sep boolean isConnected concode_elem_sep int id concode_elem_sep EndPoint endPoint concode_elem_sep Object listenerLock concode_elem_sep long lastPingSendTime concode_elem_sep String name concode_elem_sep Listener[] listeners concode_elem_sep InetSocketAddress udpRemoteAddress concode_elem_sep int returnTripTime concode_field_sep void setName concode_elem_sep int getTcpWriteBufferSize concode_elem_sep void setBufferPositionFix concode_elem_sep void updateReturnTripTime concode_elem_sep boolean isConnected concode_elem_sep void notifyDisconnected concode_elem_sep int getReturnTripTime concode_elem_sep void setIdleThreshold concode_elem_sep int sendUDP concode_elem_sep void close concode_elem_sep void addListener concode_elem_sep InetSocketAddress getRemoteAddressUDP concode_elem_sep void notifyReceived concode_elem_sep int getID concode_elem_sep void removeListener concode_elem_sep void notifyConnected concode_elem_sep void setKeepAliveTCP concode_elem_sep EndPoint getEndPoint concode_elem_sep void notifyIdle concode_elem_sep KryoNetException getLastProtocolError concode_elem_sep boolean isIdle concode_elem_sep String toString concode_elem_sep void initialize concode_elem_sep int sendTCP concode_elem_sep void setConnected concode_elem_sep InetSocketAddress getRemoteAddressTCP