public class Server extends Object
TransportFilter
- reads/writes data from/to network
StringFilter
- translates Buffer <-> String. StringFilter reads just single line at a time.
MultiLineFilter
- translates String <-> MultiLinePacket (see 1)
ServerAuthFilter
- checks authentication header in an incoming packets.
EchoFilter
- sends echo to a client.Constructor and Description |
---|
Server() |
public static final String HOST
public static final int PORT
public static void main(String[] args) throws IOException
IOException
Copyright © 2014 Oracle Corporation. All rights reserved.