Lines Matching defs:tcp
243 Tcp tcp =
247 msg2 = doTcpQuery(tcp, pkt);
249 tcp.close();
327 Tcp tcp = new Tcp(servers[i], serverPorts[i]);
330 msg = doTcpQuery(tcp, pkt);
346 msg = continueTcpQuery(tcp);
363 tcp.close();
439 private byte[] doTcpQuery(Tcp tcp, Packet pkt) throws IOException {
443 tcp.out.write(len >> 8);
444 tcp.out.write(len);
445 tcp.out.write(pkt.getData(), 0, len);
446 tcp.out.flush();
448 byte[] msg = continueTcpQuery(tcp);
458 private byte[] continueTcpQuery(Tcp tcp) throws IOException {
460 int lenHi = tcp.in.read(); // high-order byte of response length
464 int lenLo = tcp.in.read(); // low-order byte of response length
472 int n = tcp.in.read(msg, pos, len);