/// import * as net from 'net' import { Info } from './handler' import ObfsMethod from '../obfs/obfs' /** * Starts listening on a new TCP port and the proxy relays * then remote host information back to the client. when another remote client connects * on this port sends a notification that an incoming connection has been accepted to the * initial client and a full duplex stream is now established to the initial client and * the client that connected to that special port. */ declare class TcpRelay { /** * TCP socket */ private tcpRelay /** * Relays port */ port: number constructor(port: number, info: Info, socket: net.Socket, obfs: ObfsMethod) /** * Close Relay's socket * @param callback - Called when the socket has been closed */ close(callback?: () => void): void } export default TcpRelay