src/main/java/pityoulish/sockets/server/Main.java
public static SocketHandler createTLVSocketHandler(MixedMessageBoard mmb,
                                                     TicketManager tim,
                                                     boolean verbose,
                                                     boolean ipcheck)
  {
    MsgBoardRequestHandler mbrh =
      new MsgBoardRequestHandlerImpl(mmb, tim, ipcheck);

    RequestParser   reqp = new TLVRequestParserImpl();
    ResponseBuilder rspb = new TLVResponseBuilderImpl();

    Expositor       ex = new ConsoleExpositorImpl();
    RequestHandler  rh = new RequestHandlerImpl(reqp, mbrh, rspb, ex);

    SocketHandler shandler = new SimplisticSocketHandler(rh, verbose);

    return shandler;
  }
/**
   * Create a socket handler for the binary TLV protocol.
   *
   * @param mmb   the message board to serve from
   * @param tim   the ticket manager to serve from
   * @param verbose
   *        <code>true</code> to print info about incoming connections,
   *        <code>false</code> to omit them
   * @param ipcheck
   *        <code>true</code> to check for unique client IP addresses
   *        when granting tickets,
   *        <code>false</code> to grant tickets regardless of client IP
   *
   * @return the socket handler
   */
Create a socket handler for the binary TLV protocol.
@param mmb   the message board to serve from
@param tim   the ticket manager to serve from
@param verbose
true to print info about incoming connections,
false to omit them
@param ipcheck
true to check for unique client IP addresses
when granting tickets,
false to grant tickets regardless of client IP

@return the socket handler
Create a socket handler for the binary TLV protocol . @param mmb the message board to serve from @param tim the ticket manager to serve from @param verbose true to print info about incoming connections false to omit them @param ipcheck true to check for unique client IP addresses when granting tickets false to grant tickets regardless of client IP @return the socket handler
public static SocketHandler createTLVSocketHandler(MixedMessageBoard mmb,
                                                     TicketManager tim,
                                                     boolean verbose,
                                                     boolean ipcheck)
  {
    MsgBoardRequestHandler mbrh =
      new MsgBoardRequestHandlerImpl(mmb, tim, ipcheck);
    RequestParser   reqp = new TLVRequestParserImpl();
    ResponseBuilder rspb = new TLVResponseBuilderImpl();
    Expositor       ex = new ConsoleExpositorImpl();
    RequestHandler  rh = new RequestHandlerImpl(reqp, mbrh, rspb, ex);
    SocketHandler shandler = new SimplisticSocketHandler(rh, verbose);
    return shandler;
  }
public static SocketHandler createTLVSocketHandler ( MixedMessageBoard mmb , TicketManager tim , boolean verbose , boolean ipcheck ) { MsgBoardRequestHandler mbrh = new MsgBoardRequestHandlerImpl ( mmb , tim , ipcheck ) ; RequestParser reqp = new TLVRequestParserImpl ( ) ; ResponseBuilder rspb = new TLVResponseBuilderImpl ( ) ; Expositor ex = new ConsoleExpositorImpl ( ) ; RequestHandler rh = new RequestHandlerImpl ( reqp , mbrh , rspb , ex ) ; SocketHandler shandler = new SimplisticSocketHandler ( rh , verbose ) ; return shandler ; }
Create a socket handler for the binary TLV protocol.
Create a socket handler for the binary TLV protocol .