All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchdarkly.testhelpers.tcptest.TcpHandler Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.launchdarkly.testhelpers.tcptest;

import java.io.IOException;
import java.net.Socket;

/**
 * Use with {@link TcpServer} to define behavior for a TCP endpoint in a test.
 * 
 * @since 1.3.0
 */
public interface TcpHandler {
  /**
   * Processes the request.
   * 
   * @param socket the incoming socket
   * @throws IOException for any I/O error
   */
  void apply(Socket socket) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy