Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoshGlazebrook/socks
/ functions
Functions
53 in github.com/JoshGlazebrook/socks
⨍
Functions
53
◇
Types & classes
38
↓ 13 callers
Method
setState
* 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 callers
Method
closeSocket
* 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 callers
Method
get
(length: number)
src/common/receivebuffer.ts:47
↓ 6 callers
Function
int32ToIpv4
(int32: number)
src/common/helpers.ts:221
↓ 5 callers
Method
emit
(event: string | symbol, ...args: unknown[])
src/client/socksclient.ts:52
↓ 5 callers
Method
removeInternalSocketHandlers
* Removes internal event listeners on the underlying Socket.
src/client/socksclient.ts:473
↓ 4 callers
Function
ipToBuffer
(ip: string)
src/common/helpers.ts:232
↓ 3 callers
Method
peek
(length: number)
src/common/receivebuffer.ts:38
↓ 3 callers
Function
validateSocksClientOptions
* Validates the provided SocksClientOptions * @param options { SocksClientOptions } * @param acceptedCommands { string[] } A list of accepted SocksP
src/common/helpers.ts:23
↓ 2 callers
Method
append
(data: Buffer)
src/common/receivebuffer.ts:16
↓ 2 callers
Method
createConnection
* Creates a new SOCKS connection. * * Note: Supports callbacks and promises. Only supports the connect command. * @param options { SocksClien
src/client/socksclient.ts:95
↓ 2 callers
Function
ipv4ToInt32
(ip: string)
src/common/helpers.ts:215
↓ 2 callers
Function
isValidSocksProxy
* Validates a SocksProxy * @param proxy { SocksProxy }
src/common/helpers.ts:194
↓ 2 callers
Function
isValidSocksRemoteHost
* Validates a SocksRemoteHost * @param remoteHost { SocksRemoteHost }
src/common/helpers.ts:179
↓ 2 callers
Function
isValidTimeoutValue
* Validates a timeout value. * @param value { Number }
src/common/helpers.ts:209
↓ 2 callers
Method
sendSocks5CommandRequest
* Sends Socks v5 final handshake request.
src/client/socksclient.ts:745
↓ 2 callers
Function
shuffleArray
* Shuffles a given array. * @param array The array to shuffle.
src/common/util.ts:19
↓ 2 callers
Function
validateCustomProxyAuth
( proxy: SocksProxy, options: SocksClientOptions | SocksClientChainOptions, )
src/common/helpers.ts:127
↓ 2 callers
Function
validateSocksClientChainOptions
* Validates the SocksClientChainOptions * @param options { SocksClientChainOptions }
src/common/helpers.ts:77
↓ 1 callers
Method
connect
* 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 callers
Method
createConnectionChain
* 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 callers
Method
createUDPFrame
* Creates a SOCKS UDP Frame. * @param options
src/client/socksclient.ts:229
↓ 1 callers
Method
emit
(event: string | symbol, ...args: unknown[])
typings/client/socksclient.d.ts:16
↓ 1 callers
Method
getSocketOptions
()
src/client/socksclient.ts:363
↓ 1 callers
Method
handleInitialSocks5AuthenticationHandshakeResponse
* Handles Socks v5 auth handshake response. * @param data
src/client/socksclient.ts:713
↓ 1 callers
Method
handleInitialSocks5HandshakeResponse
* Handles initial Socks v5 handshake response. * @param data
src/client/socksclient.ts:638
↓ 1 callers
Method
handleSocks4FinalHandshakeResponse
* Handles Socks v4 handshake response. * @param data
src/client/socksclient.ts:537
↓ 1 callers
Method
handleSocks4IncomingConnectionResponse
* Handles Socks v4 incoming connection request (BIND) * @param data
src/client/socksclient.ts:577
↓ 1 callers
Method
handleSocks5AuthenticationNoAuthHandshakeResponse
( data: Buffer, )
src/client/socksclient.ts:697
↓ 1 callers
Method
handleSocks5AuthenticationUserPassHandshakeResponse
( data: Buffer, )
src/client/socksclient.ts:703
↓ 1 callers
Method
handleSocks5CustomAuthHandshakeResponse
(data: Buffer)
src/client/socksclient.ts:693
↓ 1 callers
Method
handleSocks5FinalHandshakeResponse
* Handles Socks v5 final handshake response. * @param data
src/client/socksclient.ts:776
↓ 1 callers
Method
handleSocks5IncomingConnectionResponse
* Handles Socks v5 incoming connection request (BIND).
src/client/socksclient.ts:892
↓ 1 callers
Method
on
(event: 'error', listener: (err: SocksClientError) => void)
typings/client/socksclient.d.ts:9
↓ 1 callers
Method
onCloseHandler
* Handles Socket close event. * @param had_error
src/client/socksclient.ts:458
↓ 1 callers
Method
onConnectHandler
* Handles Socket connect event.
src/client/socksclient.ts:387
↓ 1 callers
Method
onDataReceivedHandler
* Handles Socket data event. * @param data
src/client/socksclient.ts:404
↓ 1 callers
Method
onErrorHandler
* Handles Socket error event. * @param err
src/client/socksclient.ts:466
↓ 1 callers
Method
onEstablishedTimeout
* 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 callers
Method
once
(event: string, listener: (...args: unknown[]) => void)
src/client/socksclient.ts:44
↓ 1 callers
Method
once
(event: string, listener: (...args: unknown[]) => void)
typings/client/socksclient.d.ts:12
↓ 1 callers
Method
parseUDPFrame
* Parses a SOCKS UDP frame. * @param data
src/client/socksclient.ts:260
↓ 1 callers
Method
processData
* Handles processing of the data we have received.
src/client/socksclient.ts:418
↓ 1 callers
Method
sendSocks4InitialHandshake
* Sends initial Socks v4 handshake request.
src/client/socksclient.ts:506
↓ 1 callers
Method
sendSocks5CustomAuthentication
()
src/client/socksclient.ts:686
↓ 1 callers
Method
sendSocks5InitialHandshake
* Sends initial Socks v5 handshake request.
src/client/socksclient.ts:604
↓ 1 callers
Method
sendSocks5UserPassAuthentication
* Sends Socks v5 user & password auth handshake. * * Note: No auth and user/pass are currently supported.
src/client/socksclient.ts:669
Method
constructor
(options: SocksClientOptions)
src/client/socksclient.ts:74
Method
constructor
( message: string, public options: SocksClientOptions | SocksClientChainOptions, )
src/common/util.ts:7
Method
constructor
(size = 4096)
src/common/receivebuffer.ts:6
Method
length
()
src/common/receivebuffer.ts:12
Method
on
(event: 'error', listener: (err: SocksClientError) => void)
src/client/socksclient.ts:37
Method
socksClientOptions
()
src/client/socksclient.ts:979