1 // Copyright 2017 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.net.test; 6 7 interface IConnectionListener { 8 /** 9 * When a new connection has been accepted by the server. 10 * 11 * @param socketId Unique as long as the socket is alive. 12 */ acceptedSocket(long socketId)13 oneway void acceptedSocket(long socketId); 14 15 /** 16 * When data has been read on a socket. 17 * 18 * @param socketId Unique as long as the socket is alive. 19 */ readFromSocket(long socketId)20 oneway void readFromSocket(long socketId); 21 } 22