// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is autogenerated by:
//     mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
//     mojo/services/network/public/interfaces/tcp_bound_socket.mojom
//

package org.chromium.mojom.mojo;

public interface TcpBoundSocket extends org.chromium.mojo.bindings.Interface {

    public interface Proxy extends TcpBoundSocket, org.chromium.mojo.bindings.Interface.Proxy {
    }

    Manager<TcpBoundSocket, TcpBoundSocket.Proxy> MANAGER = TcpBoundSocket_Internal.MANAGER;

    void startListening(org.chromium.mojo.bindings.InterfaceRequest<TcpServerSocket> server, StartListeningResponse callback);
    interface StartListeningResponse extends org.chromium.mojo.bindings.Callbacks.Callback1<NetworkError> { }

    void connect(NetAddress remoteAddress, org.chromium.mojo.system.DataPipe.ConsumerHandle sendStream, org.chromium.mojo.system.DataPipe.ProducerHandle receiveStream, org.chromium.mojo.bindings.InterfaceRequest<TcpConnectedSocket> clientSocket, ConnectResponse callback);
    interface ConnectResponse extends org.chromium.mojo.bindings.Callbacks.Callback1<NetworkError> { }
}

