class SocksClient
implements SocksClient
extends EventEmitter
import { SocksClient } from "https://deno.land/x/grm@v0.3.1/deps.ts";
Properties
private
onDataReceived: (data: Buffer) => voidMethods
private
closeSocket(err: string)private
getSocketOptions(): SocketConnectOptsprivate
handleInitialSocks5HandshakeResponse()private
handleSocks4FinalHandshakeResponse()private
handleSocks5AuthenticationNoAuthHandshakeResponse(data: Buffer): booleanprivate
handleSocks5AuthenticationUserPassHandshakeResponse(data: Buffer): booleanprivate
handleSocks5CustomAuthHandshakeResponse(data: Buffer)private
handleSocks5FinalHandshakeResponse()private
onCloseHandler()private
onConnectHandler()private
onDataReceivedHandler(data: Buffer)private
onErrorHandler(err: Error)private
onEstablishedTimeout()private
processData()private
removeInternalSocketHandlers()private
sendSocks4InitialHandshake()private
sendSocks5CommandRequest()private
sendSocks5CustomAuthentication()private
sendSocks5InitialHandshake()private
sendSocks5UserPassAuthentication()private
setState(newState: SocksClientState)connect(existingSocket?: Duplex)
Static Methods
createConnection(options: SocksClientOptions, callback?: Function): Promise<SocksClientEstablishedEvent>
createConnectionChain(options: SocksClientChainOptions, callback?: Function): Promise<SocksClientEstablishedEvent>
createUDPFrame(options: SocksUDPFrameDetails): Buffer
parseUDPFrame(data: Buffer): SocksUDPFrameDetails
import { type SocksClient } from "https://deno.land/x/grm@v0.3.1/deps.ts";