$search

Classes | |
| class | MessageOutputStream |
Public Member Functions | |
| void | addAdditionalAnswer (DNSIncoming in, DNSRecord rec) throws IOException |
| void | addAnswer (DNSRecord rec, long now) throws IOException |
| void | addAnswer (DNSIncoming in, DNSRecord rec) throws IOException |
| void | addAuthorativeAnswer (DNSRecord rec) throws IOException |
| void | addQuestion (DNSQuestion rec) throws IOException |
| int | availableSpace () |
| byte[] | data () |
| DNSOutgoing (int flags, boolean multicast, int senderUDPPayload) | |
| DNSOutgoing (int flags, boolean multicast) | |
| DNSOutgoing (int flags) | |
| 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 |
An outgoing DNS message.
Definition at line 20 of file DNSOutgoing.java.
| javax::jmdns::impl::DNSOutgoing::DNSOutgoing | ( | int | flags | ) | [inline] |
Create an outgoing multicast query or response.
| 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.
| 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.
| flags | ||
| multicast | ||
| senderUDPPayload | The 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.
| 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.
| in | ||
| rec |
| IOException |
Definition at line 315 of file DNSOutgoing.java.
| void javax::jmdns::impl::DNSOutgoing::addAnswer | ( | DNSRecord | rec, | |
| long | now | |||
| ) | throws IOException [inline] |
Add an answer to the message.
| rec | ||
| now |
| IOException |
Definition at line 274 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.
| in | ||
| rec |
| IOException |
Definition at line 261 of file DNSOutgoing.java.
| void javax::jmdns::impl::DNSOutgoing::addAuthorativeAnswer | ( | DNSRecord | rec | ) | throws IOException [inline] |
Add an authoritative answer to the message.
| rec |
| 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.
| rec |
| IOException |
Definition at line 242 of file DNSOutgoing.java.
| int javax::jmdns::impl::DNSOutgoing::availableSpace | ( | ) | [inline] |
Return the number of byte available in the message.
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.
Definition at line 332 of file DNSOutgoing.java.
| int javax::jmdns::impl::DNSOutgoing::getMaxUDPPayload | ( | ) | [inline] |
Definition at line 447 of file DNSOutgoing.java.
| boolean javax::jmdns::impl::DNSOutgoing::isQuery | ( | ) | [inline] |
Check if 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.
| String javax::jmdns::impl::DNSOutgoing::toString | ( | ) | [inline] |
Definition at line 376 of file DNSOutgoing.java.
Definition at line 186 of file DNSOutgoing.java.
final MessageOutputStream javax::jmdns::impl::DNSOutgoing::_answersBytes [private] |
Definition at line 182 of file DNSOutgoing.java.
Definition at line 184 of file DNSOutgoing.java.
int javax::jmdns::impl::DNSOutgoing::_maxUDPPayload [private] |
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.
final MessageOutputStream javax::jmdns::impl::DNSOutgoing::_questionsBytes [private] |
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.
boolean javax::jmdns::impl::DNSOutgoing::USE_DOMAIN_NAME_COMPRESSION = true [static] |
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.