Java Code Examples for

The following are Jave code examples for showing how to use isBound() of the class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: blackbird   File:   Source Code and License Vote up 5 votes
 * Creates a connection using a connected socket
 * @param socket the socket this connection is based on
 * @throws IOException if the socket is either closed, unbound or not connected.
public NetworkConnection(Socket socket) throws IOException {
    if (socket.isClosed() || !socket.isBound() || !socket.isConnected())
        throw new IOException("NetworkConnection expects a not closed, bound and connected socket");

    this.socket = socket;