MCPcopy Create free account

hub / github.com/JoshGlazebrook/socks / functions

Functions53 in github.com/JoshGlazebrook/socks

↓ 13 callersMethodsetState
* Internal state setter. If the SocksClient is in an error state, it cannot be changed to a non error state.
src/client/socksclient.ts:293
↓ 10 callersMethodcloseSocket
* Closes and destroys the underlying Socket. Emits an error event. * @param err { String } An error string to include in error event.
src/client/socksclient.ts:486
↓ 8 callersMethodget
(length: number)
src/common/receivebuffer.ts:47
↓ 6 callersFunctionint32ToIpv4
(int32: number)
src/common/helpers.ts:221
↓ 5 callersMethodemit
(event: string | symbol, ...args: unknown[])
src/client/socksclient.ts:52
↓ 5 callersMethodremoveInternalSocketHandlers
* Removes internal event listeners on the underlying Socket.
src/client/socksclient.ts:473
↓ 4 callersFunctionipToBuffer
(ip: string)
src/common/helpers.ts:232
↓ 3 callersMethodpeek
(length: number)
src/common/receivebuffer.ts:38
↓ 3 callersFunctionvalidateSocksClientOptions
* Validates the provided SocksClientOptions * @param options { SocksClientOptions } * @param acceptedCommands { string[] } A list of accepted SocksP
src/common/helpers.ts:23
↓ 2 callersMethodappend
(data: Buffer)
src/common/receivebuffer.ts:16
↓ 2 callersMethodcreateConnection
* Creates a new SOCKS connection. * * Note: Supports callbacks and promises. Only supports the connect command. * @param options { SocksClien
src/client/socksclient.ts:95
↓ 2 callersFunctionipv4ToInt32
(ip: string)
src/common/helpers.ts:215
↓ 2 callersFunctionisValidSocksProxy
* Validates a SocksProxy * @param proxy { SocksProxy }
src/common/helpers.ts:194
↓ 2 callersFunctionisValidSocksRemoteHost
* Validates a SocksRemoteHost * @param remoteHost { SocksRemoteHost }
src/common/helpers.ts:179
↓ 2 callersFunctionisValidTimeoutValue
* Validates a timeout value. * @param value { Number }
src/common/helpers.ts:209
↓ 2 callersMethodsendSocks5CommandRequest
* Sends Socks v5 final handshake request.
src/client/socksclient.ts:745
↓ 2 callersFunctionshuffleArray
* Shuffles a given array. * @param array The array to shuffle.
src/common/util.ts:19
↓ 2 callersFunctionvalidateCustomProxyAuth
( proxy: SocksProxy, options: SocksClientOptions | SocksClientChainOptions, )
src/common/helpers.ts:127
↓ 2 callersFunctionvalidateSocksClientChainOptions
* Validates the SocksClientChainOptions * @param options { SocksClientChainOptions }
src/common/helpers.ts:77
↓ 1 callersMethodconnect
* Starts the connection establishment to the proxy and destination. * @param existingSocket Connected socket to use instead of creating a new one (
src/client/socksclient.ts:303
↓ 1 callersMethodcreateConnectionChain
* Creates a new SOCKS connection chain to a destination host through 2 or more SOCKS proxies. * * Note: Supports callbacks and promises. Only su
src/client/socksclient.ts:151
↓ 1 callersMethodcreateUDPFrame
* Creates a SOCKS UDP Frame. * @param options
src/client/socksclient.ts:229
↓ 1 callersMethodemit
(event: string | symbol, ...args: unknown[])
typings/client/socksclient.d.ts:16
↓ 1 callersMethodgetSocketOptions
()
src/client/socksclient.ts:363
↓ 1 callersMethodhandleInitialSocks5AuthenticationHandshakeResponse
* Handles Socks v5 auth handshake response. * @param data
src/client/socksclient.ts:713
↓ 1 callersMethodhandleInitialSocks5HandshakeResponse
* Handles initial Socks v5 handshake response. * @param data
src/client/socksclient.ts:638
↓ 1 callersMethodhandleSocks4FinalHandshakeResponse
* Handles Socks v4 handshake response. * @param data
src/client/socksclient.ts:537
↓ 1 callersMethodhandleSocks4IncomingConnectionResponse
* Handles Socks v4 incoming connection request (BIND) * @param data
src/client/socksclient.ts:577
↓ 1 callersMethodhandleSocks5AuthenticationNoAuthHandshakeResponse
( data: Buffer, )
src/client/socksclient.ts:697
↓ 1 callersMethodhandleSocks5AuthenticationUserPassHandshakeResponse
( data: Buffer, )
src/client/socksclient.ts:703
↓ 1 callersMethodhandleSocks5CustomAuthHandshakeResponse
(data: Buffer)
src/client/socksclient.ts:693
↓ 1 callersMethodhandleSocks5FinalHandshakeResponse
* Handles Socks v5 final handshake response. * @param data
src/client/socksclient.ts:776
↓ 1 callersMethodhandleSocks5IncomingConnectionResponse
* Handles Socks v5 incoming connection request (BIND).
src/client/socksclient.ts:892
↓ 1 callersMethodon
(event: 'error', listener: (err: SocksClientError) => void)
typings/client/socksclient.d.ts:9
↓ 1 callersMethodonCloseHandler
* Handles Socket close event. * @param had_error
src/client/socksclient.ts:458
↓ 1 callersMethodonConnectHandler
* Handles Socket connect event.
src/client/socksclient.ts:387
↓ 1 callersMethodonDataReceivedHandler
* Handles Socket data event. * @param data
src/client/socksclient.ts:404
↓ 1 callersMethodonErrorHandler
* Handles Socket error event. * @param err
src/client/socksclient.ts:466
↓ 1 callersMethodonEstablishedTimeout
* Handles internal Socks timeout callback. * Note: If the Socks client is not BoundWaitingForConnection or Established, the connection will be clos
src/client/socksclient.ts:375
↓ 1 callersMethodonce
(event: string, listener: (...args: unknown[]) => void)
src/client/socksclient.ts:44
↓ 1 callersMethodonce
(event: string, listener: (...args: unknown[]) => void)
typings/client/socksclient.d.ts:12
↓ 1 callersMethodparseUDPFrame
* Parses a SOCKS UDP frame. * @param data
src/client/socksclient.ts:260
↓ 1 callersMethodprocessData
* Handles processing of the data we have received.
src/client/socksclient.ts:418
↓ 1 callersMethodsendSocks4InitialHandshake
* Sends initial Socks v4 handshake request.
src/client/socksclient.ts:506
↓ 1 callersMethodsendSocks5CustomAuthentication
()
src/client/socksclient.ts:686
↓ 1 callersMethodsendSocks5InitialHandshake
* Sends initial Socks v5 handshake request.
src/client/socksclient.ts:604
↓ 1 callersMethodsendSocks5UserPassAuthentication
* Sends Socks v5 user & password auth handshake. * * Note: No auth and user/pass are currently supported.
src/client/socksclient.ts:669
Methodconstructor
(options: SocksClientOptions)
src/client/socksclient.ts:74
Methodconstructor
( message: string, public options: SocksClientOptions | SocksClientChainOptions, )
src/common/util.ts:7
Methodconstructor
(size = 4096)
src/common/receivebuffer.ts:6
Methodlength
()
src/common/receivebuffer.ts:12
Methodon
(event: 'error', listener: (err: SocksClientError) => void)
src/client/socksclient.ts:37
MethodsocksClientOptions
()
src/client/socksclient.ts:979