Java API Tutorial - Socket Example








Constructor

  1. Java Socket() Constructor
  2. Java Socket(InetAddress address, int port) Constructor
  3. Java Socket(InetAddress address, int port, InetAddress localAddr, int localPort) Constructor
  4. Java Socket(Proxy proxy) Constructor
  5. Java Socket(String host, int port) Constructor
  6. Java Socket(String host, int port, boolean stream) Constructor
  7. Java Socket(String host, int port, InetAddress localAddr, int localPort) Constructor




Method

  1. Java Socket.bind(SocketAddress bindpoint)
  2. Java Socket.close()
  3. Java Socket.connect(SocketAddress endpoint)
  4. Java Socket.connect(SocketAddress endpoint, int timeout)
  5. Java Socket.getChannel()
  6. Java Socket.getInetAddress()
  7. Java Socket.getInputStream()
  8. Java Socket.getKeepAlive()
  9. Java Socket.getLocalAddress()
  10. Java Socket.getLocalPort()
  11. Java Socket .getLocalSocketAddress ()
  12. Java Socket.getOOBInline()
  13. Java Socket.getOutputStream()
  14. Java Socket.getPort()
  15. Java Socket.getReceiveBufferSize()
  16. Java Socket .getRemoteSocketAddress ()
  17. Java Socket.getReuseAddress()
  18. Java Socket.getSendBufferSize()
  19. Java Socket.getSoLinger()
  20. Java Socket.getSoTimeout()
  21. Java Socket.getTcpNoDelay()
  22. Java Socket.getTrafficClass()
  23. Java Socket.isBound()
  24. Java Socket.isClosed()
  25. Java Socket.isConnected()
  26. Java Socket.isInputShutdown()
  27. Java Socket.isOutputShutdown()
  28. Java Socket.sendUrgentData(int data)
  29. Java Socket.setKeepAlive(boolean on)
  30. Java Socket.setOOBInline(boolean on)
  31. Java Socket .setReceiveBufferSize (int size)
  32. Java Socket .setReuseAddress (boolean on)
  33. Java Socket.setSendBufferSize(int size)
  34. Java Socket.setSoLinger(boolean on, int linger)
  35. Java Socket.setSoTimeout(int timeout)
  36. Java Socket.setTcpNoDelay(boolean on)
  37. Java Socket.setTrafficClass(int tc)
  38. Java Socket.shutdownInput()
  39. Java Socket.shutdownOutput()
  40. Java Socket.toString()