Java Socket Create getSocket()

Here you can find the source of getSocket()

Description

Return the user socket

License

Open Source License

Return

Socket the Client Socket

Declaration

public static Socket getSocket() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.Socket;

public class Main {
    static Socket clientSocket;

    /**//from   w w w .j a  v  a  2s.co m
     * Return the user socket
     * @return Socket the Client Socket
     */
    public static Socket getSocket() {
        return clientSocket;
    }
}

Related

  1. createSocketAddr(String target)
  2. createSocketAddress()
  3. createSocketAddress(String server)
  4. createSocketAddrForHost(String hostName, int port)
  5. createSocketServer(int port)
  6. getSocket(String host, int port)
  7. getSocket(String host, int port)
  8. getSocket(String host, int port, int timeout)
  9. getSocket(String i_HostName, int i_Port)