public UtopiaClient() { this.tsclock = new TimeStampClock(); this.msgbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.tmpbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.inbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.nextHeartbeatTime = getTimeStamp(); this.nextHeartbeatTimeUDP = getTimeStamp(); }
public UtopiaClient() { this.tsclock = new TimeStampClock(); this.msgbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.tmpbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.inbuffer = ByteBuffer.allocate(MAXBUFFERSIZE); this.nextHeartbeatTime = getTimeStamp(); this.nextHeartbeatTimeUDP = getTimeStamp(); this.ssdpDiscovery = null; this.clientSocket = new TcpClient(); }
public int getTimeStamp() { return((int)TimeStampClock.getTime()); }