Code example for Socket

Methods: getLocalSocketAddress

0
        return socket.getRemoteSocketAddress();
    } 
 
    @Override 
    public SocketAddress getLocalSocketAddress() {
        return socket.getLocalSocketAddress();
    } 
 
    @Override 
    public InetAddress getLocalAddress() {
        return socket.getLocalAddress();
    } 
 
    @Override 
    public InetAddress getInetAddress() {
        return socket.getInetAddress();
    } 
 
    @Override 
    public String toString() {
        return "SSL socket over " + socket.toString();