# HostConnection type

The HostConnection type identifies a server resource and login credentials.

The defining Java class is `net.brutex.xservices.types.HostConnection` .

Schema definition

    <xs:complexType name="connection">
       <xs:sequence>
          <xs:element name="hostname" type="xs:string"/>
          <xs:element name="port" type="xs:int"/>
          <xs:element minOccurs="0" name="user" type="xs:string"/>
          <xs:element minOccurs="0" name="password" type="xs:string"/>
       </xs:sequence>
    </xs:complexType>

Example XML

    <host>
       <hostname>server.brutex.net</hostname>
       <port>512</port> <!-- default rExec port -->
       <user>brian</user>
       <!--Optional:-->
       <password>somepass</password>
    </host>