# flaneth - dartboard mod

# UDP interface

- send empty UDP datagram to UDP port 501
- receive UDP datagrams containing hit field (e.g. 2x25 for double bull)

# SOAP interface

- URL: http://flaneth-dartboard-mod:80/dart

- example request:

      <soap:Envelope
          xmlns:soap="http://www.w3.org/2001/12/soap-envelope/"
          soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
        <soap:Body xmlns="http://stefan.blinkenarea.org/flaneth/dartboard-mod/soap">
          <GetHit>
            <timeout>5</timeout>
          </GetHit>
        </soap:Body>
      </soap:Envelope>

  timeout: time in seconds to wait for field to be hit
- example response (double bull):

      <soap:Envelope
          xmlns:soap="http://www.w3.org/2001/12/soap-envelope/"
          soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
        <soap:Body xmlns="http://stefan.blinkenarea.org/flaneth/dartboard-mod/soap">
          <GetHitResponse>
            <factor>2</factor>
            <value>25</value>
          </GetHitResponse>
        </soap:Body>
      </soap:Envelope>

  factor: 1 for single, 2 for double, 3 for triple
  value: value of field that was hit
- example response (single one):

      <soap:Envelope
          xmlns:soap="http://www.w3.org/2001/12/soap-envelope/"
          soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
        <soap:Body xmlns="http://stefan.blinkenarea.org/flaneth/dartboard-mod/soap">
          <GetHitResponse>
            <factor>1</factor>
            <value>1</value>
          </GetHitResponse>
        </soap:Body>
      </soap:Envelope>

  factor: 1 for single, 2 for double, 3 for triple
  value: value of field that was hit
- example response (nothing hit):

      <soap:Envelope
          xmlns:soap="http://www.w3.org/2001/12/soap-envelope/"
          soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
        <soap:Body xmlns="http://stefan.blinkenarea.org/flaneth/dartboard-mod/soap">
          <GetHitResponse>
          </GetHitResponse>
        </soap:Body>
      </soap:Envelope>

flaneth - __VERSION__