Class AdminWire
java.lang.Object
io.github.protasm.jvmud.communication.transport.admin.AdminWire
Versioned UTF-8 framing shared by the administration consoles, listeners, and private worker pipes.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringread(DataInputStream in, int limit) Reads one bounded frame; rejects negative, oversized, or truncated payloads.static voidwrite(DataOutputStream out, String text, int limit) Writes one bounded frame and flushes it without waiting for another request.
-
Field Details
-
VERSION
- See Also:
-
MAX_COMMAND_BYTES
public static final int MAX_COMMAND_BYTES- See Also:
-
MAX_RESPONSE_BYTES
public static final int MAX_RESPONSE_BYTES- See Also:
-
-
Method Details
-
read
Reads one bounded frame; rejects negative, oversized, or truncated payloads.- Throws:
IOException
-
write
Writes one bounded frame and flushes it without waiting for another request.- Throws:
IOException
-