Java Socket Address Get createBoundServerSocket(final SocketAddress socketAddress)

Here you can find the source of createBoundServerSocket(final SocketAddress socketAddress)

Description

create Bound Server Socket

License

LGPL

Declaration

static ServerSocket createBoundServerSocket(final SocketAddress socketAddress) throws IOException 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.io.IOException;
import java.net.ServerSocket;
import java.net.SocketAddress;

public class Main {
    static ServerSocket createBoundServerSocket(final SocketAddress socketAddress) throws IOException {
        final ServerSocket serverSocket = new ServerSocket();
        serverSocket.bind(socketAddress);
        return serverSocket;
    }//ww w  . j  a v  a2 s .  co m
}

Related

  1. asString(SocketAddress socketAddress)
  2. cast2SocketAddress(String addr)
  3. compareAddresses(InetSocketAddress addr1, InetSocketAddress addr2)
  4. convertToHostString(SocketAddress hostAddress)
  5. create(SocketAddress address, SocketAddress port)
  6. createClientSocket(InetSocketAddress site)
  7. createHttpFields(InetSocketAddress endpoint)
  8. createInetSocketAddress(String address)
  9. createInetSocketAddress(String ip, int port)