All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Classes | Public Member Functions | Static Public Attributes | Package Functions | Package Attributes | Private Attributes | Static Private Attributes
javax.jmdns.impl.DNSOutgoing Class Reference
Inheritance diagram for javax.jmdns.impl.DNSOutgoing:
Inheritance graph
[legend]

List of all members.

Classes

class  MessageOutputStream

Public Member Functions

void addAdditionalAnswer (DNSIncoming in, DNSRecord rec) throws IOException
void addAnswer (DNSIncoming in, DNSRecord rec) throws IOException
void addAnswer (DNSRecord rec, long now) throws IOException
void addAuthorativeAnswer (DNSRecord rec) throws IOException
void addQuestion (DNSQuestion rec) throws IOException
int availableSpace ()
byte[] data ()
 DNSOutgoing (int flags)
 DNSOutgoing (int flags, boolean multicast)
 DNSOutgoing (int flags, boolean multicast, int senderUDPPayload)
int getMaxUDPPayload ()
boolean isQuery ()
String toString ()

Static Public Attributes

static boolean USE_DOMAIN_NAME_COMPRESSION = true

Package Functions

String print (boolean dump)

Package Attributes

Map< String, Integer > _names

Private Attributes

final MessageOutputStream _additionalsAnswersBytes
final MessageOutputStream _answersBytes
final MessageOutputStream _authoritativeAnswersBytes
int _maxUDPPayload
final MessageOutputStream _questionsBytes

Static Private Attributes

static final int HEADER_SIZE = 12

Detailed Description

An outgoing DNS message.

Author:
Arthur van Hoff, Rick Blair, Werner Randelshofer

Definition at line 20 of file DNSOutgoing.java.


Constructor & Destructor Documentation

Create an outgoing multicast query or response.

Parameters:
flags

Definition at line 195 of file DNSOutgoing.java.

javax.jmdns.impl.DNSOutgoing.DNSOutgoing ( int  flags,
boolean  multicast 
) [inline]

Create an outgoing query or response.

Parameters:
flags
multicast

Definition at line 205 of file DNSOutgoing.java.

javax.jmdns.impl.DNSOutgoing.DNSOutgoing ( int  flags,
boolean  multicast,
int  senderUDPPayload 
) [inline]

Create an outgoing query or response.

Parameters:
flags
multicast
senderUDPPayloadThe sender's UDP payload size is the number of bytes of the largest UDP payload that can be reassembled and delivered in the sender's network stack.

Definition at line 217 of file DNSOutgoing.java.


Member Function Documentation

void javax.jmdns.impl.DNSOutgoing.addAdditionalAnswer ( DNSIncoming  in,
DNSRecord  rec 
) throws IOException [inline]

Add an additional answer to the record. Omit if there is no room.

Parameters:
in
rec
Exceptions:
IOException

Definition at line 315 of file DNSOutgoing.java.

void javax.jmdns.impl.DNSOutgoing.addAnswer ( DNSIncoming  in,
DNSRecord  rec 
) throws IOException [inline]

Add an answer if it is not suppressed.

Parameters:
in
rec
Exceptions:
IOException

Definition at line 261 of file DNSOutgoing.java.

void javax.jmdns.impl.DNSOutgoing.addAnswer ( DNSRecord  rec,
long  now 
) throws IOException [inline]

Add an answer to the message.

Parameters:
rec
now
Exceptions:
IOException

Definition at line 274 of file DNSOutgoing.java.

void javax.jmdns.impl.DNSOutgoing.addAuthorativeAnswer ( DNSRecord  rec) throws IOException [inline]

Add an authoritative answer to the message.

Parameters:
rec
Exceptions:
IOException

Definition at line 296 of file DNSOutgoing.java.

void javax.jmdns.impl.DNSOutgoing.addQuestion ( DNSQuestion  rec) throws IOException [inline]

Add a question to the message.

Parameters:
rec
Exceptions:
IOException

Definition at line 242 of file DNSOutgoing.java.

Return the number of byte available in the message.

Returns:
available space

Definition at line 232 of file DNSOutgoing.java.

byte [] javax.jmdns.impl.DNSOutgoing.data ( ) [inline]

Builds the final message buffer to be send and returns it.

Returns:
bytes to send.

Definition at line 332 of file DNSOutgoing.java.

Returns:
the maxUDPPayload

Definition at line 447 of file DNSOutgoing.java.

Check if the message is a query.

Returns:
true is the message is a query

Reimplemented from javax.jmdns.impl.DNSMessage.

Definition at line 359 of file DNSOutgoing.java.

String javax.jmdns.impl.DNSOutgoing.print ( boolean  dump) [inline, package]

Debugging.

Definition at line 366 of file DNSOutgoing.java.

Definition at line 376 of file DNSOutgoing.java.


Member Data Documentation

Definition at line 186 of file DNSOutgoing.java.

Definition at line 182 of file DNSOutgoing.java.

Definition at line 184 of file DNSOutgoing.java.

Definition at line 178 of file DNSOutgoing.java.

Map<String, Integer> javax.jmdns.impl.DNSOutgoing._names [package]

Definition at line 176 of file DNSOutgoing.java.

Definition at line 180 of file DNSOutgoing.java.

final int javax.jmdns.impl.DNSOutgoing.HEADER_SIZE = 12 [static, private]

Definition at line 188 of file DNSOutgoing.java.

This can be used to turn off domain name compression. This was helpful for tracking problems interacting with other mdns implementations.

Definition at line 174 of file DNSOutgoing.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Tue Nov 6 2012 13:08:27