Java HTTP Port createServer(final String host, final int port)

Here you can find the source of createServer(final String host, final int port)

Description

create Server

License

Apache License

Declaration

public static DatagramSocket createServer(final String host, final int port) throws SocketException 

Method Source Code

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

import java.net.DatagramSocket;
import java.net.InetSocketAddress;
import java.net.SocketException;

public class Main {
    public static DatagramSocket createServer(final String host, final int port) throws SocketException {
        return new DatagramSocket(new InetSocketAddress(host, port));
    }/*w w  w .j  av  a  2  s. c om*/
}

Related

  1. checkHostPort(String connectionString)
  2. checkIfPortAvailable(int port)
  3. create(final int[] ports)
  4. create(String scheme, String rawUserInfo, String host, int port, String rawPath, String rawQuery, String rawFragment)
  5. createProxy(final Proxy.Type type, final String host, final int port)