Class Socket

  • All Implemented Interfaces:
    java.lang.Cloneable, Condition

    public class Socket
    extends ProjectComponent
    implements Condition
    Condition to wait for a TCP/IP socket to have a listener. Its attributes are: server - the name of the server. port - the port number of the socket.
    Ant 1.5
    • Constructor Detail

      • Socket

        public Socket()
    • Method Detail

      • setServer

        public void setServer​(java.lang.String server)
        Set the server attribute
        server - the server name
      • setPort

        public void setPort​(int port)
        Set the port attribute
        port - the port number of the socket
      • eval

        public boolean eval()
                     throws BuildException
        Description copied from interface: Condition
        Is this condition true?
        Specified by:
        eval in interface Condition
        true if a socket can be created
        BuildException - if the attributes are not set