Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegatronKing/NetBare-Android
/ functions
Functions
894 in github.com/MegatronKing/NetBare-Android
⨍
Functions
894
◇
Types & classes
172
↓ 2 callers
Method
merge
(List<ByteBuffer> pendingBuffers, ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/PendingIndexedInterceptor.java:98
↓ 2 callers
Method
method
Get the request method from the header part. @return The request method.
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestHeaderPart.java:50
↓ 2 callers
Method
onEncrypt
Output an encrypted packet. @param buffer The encrypted packet. @throws IOException If an I/O error has occurred.
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLCodec.java:483
↓ 2 callers
Method
onPending
(ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/DecodeCallback.java:29
↓ 2 callers
Method
onReadMessage
Invoked when a text message is decoded. @param text A text content. @throws IOException If an I/O error has occurred.
netbare-core/src/main/java/com/github/megatronking/netbare/ws/WebSocketCallback.java:34
↓ 2 callers
Method
onRequestFinished
Notify the injector that the request is finished. @param request Http request session.
netbare-injector/src/main/java/com/github/megatronking/netbare/injector/HttpInjector.java:106
↓ 2 callers
Method
onRequestInject
Inject the http request header part, call {@link InjectorCallback#onFinished(Stream)} after the injection. @param header Http header part. @param cal
netbare-injector/src/main/java/com/github/megatronking/netbare/injector/HttpInjector.java:65
↓ 2 callers
Method
onResponseFinished
Notify the injector that the response is finished. @param response Http response session.
netbare-injector/src/main/java/com/github/megatronking/netbare/injector/HttpInjector.java:113
↓ 2 callers
Method
onResponseInject
Inject the http response header part, call {@link InjectorCallback#onFinished(Stream)} after the injection. @param header Http header part. @param ca
netbare-injector/src/main/java/com/github/megatronking/netbare/injector/HttpInjector.java:76
↓ 2 callers
Method
parse
(byte value)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/FrameType.java:110
↓ 2 callers
Method
parseIp
(String ip)
netbare-core/src/main/java/com/github/megatronking/netbare/net/UidDumper.java:179
↓ 2 callers
Method
parsePort
(String port)
netbare-core/src/main/java/com/github/megatronking/netbare/net/UidDumper.java:191
↓ 2 callers
Method
path
Get the request path from the header part. @return The request path.
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestHeaderPart.java:59
↓ 2 callers
Method
path
Returns this request's path. @return The request path.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpResponse.java:119
↓ 2 callers
Method
peerHttp2Settings
Returns the HTTP/2 peer settings. @return Client settings.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpRequest.java:193
↓ 2 callers
Method
prepareHandshake
(HttpProtocol[] protocols, AlpnResolvedCallback callback)
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLResponseCodec.java:83
↓ 2 callers
Method
randomSerial
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/CertificateGenerator.java:206
↓ 2 callers
Method
readByte
(int offset)
netbare-core/src/main/java/com/github/megatronking/netbare/ip/Header.java:34
↓ 2 callers
Method
readControlFrame
()
netbare-core/src/main/java/com/github/megatronking/netbare/ws/WebSocketReader.java:167
↓ 2 callers
Method
readHeader
()
netbare-core/src/main/java/com/github/megatronking/netbare/ws/WebSocketReader.java:98
↓ 2 callers
Method
replaceHeader
Replace the http header by name. If the name has multiple values, the values will be all removed. @param name The name of the header. @param value Th
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestHeaderPart.java:154
↓ 2 callers
Method
requestStreamEnd
Whether the current HTTP2 request stream is end. @return End is true.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpRequest.java:202
↓ 2 callers
Method
resolvePolicyIfNecessary
(ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareVirtualGateway.java:136
↓ 2 callers
Method
responseStreamEnd
Whether the current HTTP2 response stream is end. @return End is true.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpResponse.java:274
↓ 2 callers
Method
sendDataFrame
(InterceptorChain chain, byte[] data, Http2Settings http2Settings, int streamId
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2EncodeInterceptor.java:217
↓ 2 callers
Method
sendHeaderBlockFrame
(InterceptorChain chain, byte[] headerBlock, Http2Settings http2Settings,
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2EncodeInterceptor.java:170
↓ 2 callers
Method
session
()
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpResponse.java:51
↓ 2 callers
Method
setCrc
(short crc)
netbare-core/src/main/java/com/github/megatronking/netbare/ip/UdpHeader.java:83
↓ 2 callers
Method
setCrc
(short crc)
netbare-core/src/main/java/com/github/megatronking/netbare/ip/IcmpHeader.java:70
↓ 2 callers
Method
setCrc
(short crc)
netbare-core/src/main/java/com/github/megatronking/netbare/ip/IpHeader.java:105
↓ 2 callers
Method
setCrc
(short crc)
netbare-core/src/main/java/com/github/megatronking/netbare/ip/TcpHeader.java:106
↓ 2 callers
Method
setMtu
Set the maximum transmission unit (MTU) of the VPN interface. If it is not set, the default value in the operating system will be used. @param mtu Ma
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:152
↓ 2 callers
Method
setSession
Set the name of this session. It will be displayed in system-managed dialogs and notifications. This is recommended not required. @param session Sess
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:128
↓ 2 callers
Method
setSession
(Session session)
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/SessionTunnelFlow.java:33
↓ 2 callers
Method
setSessionProvider
(SessionProvider sessionProvider)
netbare-core/src/main/java/com/github/megatronking/netbare/proxy/TcpProxyServer.java:92
↓ 2 callers
Method
shouldDecrypt
Should decrypt the request buffer with SSL codec. @param chain The request chain. @return True if needs to decrypt.
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/SSLCodecInterceptor.java:56
↓ 2 callers
Method
shouldReflux
Should reflux the request buffer to SSL codec if the buffer is origin decrypted. @param chain The request chain. @return True if needs to encrypt aga
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/SSLRefluxInterceptor.java:44
↓ 2 callers
Method
signCertificate
(X509v3CertificateBuilder certificateBuilder, PrivateKey signedWithPrivateKey)
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/CertificateGenerator.java:230
↓ 2 callers
Method
start
Start the NetBare service with your specific configuration. If the service is started, {@link NetBareListener#onServiceStarted()} will be invoked. @p
netbare-core/src/main/java/com/github/megatronking/netbare/NetBare.java:103
↓ 2 callers
Method
stop
Stop the NetBare service. If the service is started, {@link NetBareListener#onServiceStopped()} will be invoked.
netbare-core/src/main/java/com/github/megatronking/netbare/NetBare.java:120
↓ 2 callers
Method
stop
Terminate the proxy server, release resources and close IOs.
netbare-core/src/main/java/com/github/megatronking/netbare/proxy/ProxyServer.java:63
↓ 2 callers
Method
streamId
Returns the HTTP2 stream id. @return A stream id.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpResponse.java:247
↓ 2 callers
Method
toString
()
netbare-injector/src/main/java/com/github/megatronking/netbare/utils/CaseInsensitiveLinkedMap.java:262
↓ 2 callers
Method
toString
Returns the protocol string value rather than it's name. @return Protocol value.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpProtocol.java:110
↓ 2 callers
Method
toString
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/IpAddress.java:33
↓ 2 callers
Method
toggleMask
(byte[] data, byte[] key)
netbare-core/src/main/java/com/github/megatronking/netbare/ws/WebSocketProtocol.java:139
↓ 2 callers
Method
updateChecksum
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/TcpHeader.java:122
↓ 2 callers
Method
verifyPacket
Verify a packet to see whether it is a valid SSL packet. @param buffer Encrypted SSL packet. @return Verification result, one of {@link #PACKET_NOT_E
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLUtils.java:85
↓ 2 callers
Method
writeHeaders
(List<Header> headerBlock)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Hpack.java:589
↓ 1 callers
Method
Builder
()
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:111
↓ 1 callers
Method
addCode
(int sym, int code, byte len)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Huffman.java:182
↓ 1 callers
Method
addDisallowedApplication
Adds an application that's denied access to the VPN connection. By default, all applications are allowed access, except for those denied through this
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:226
↓ 1 callers
Method
addDnsServer
Add a DNS server to the VPN connection. Both IPv4 and IPv6 addresses are supported. If none is set, the DNS servers of the default network will be use
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:196
↓ 1 callers
Method
adjustDynamicTableByteCount
()
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Hpack.java:715
↓ 1 callers
Method
attachApplication
Attach an application instance to NetBare. We recommend you to call this method in your {@link Application} class. @param application The application
netbare-core/src/main/java/com/github/megatronking/netbare/NetBare.java:78
↓ 1 callers
Method
buffer
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/UdpHeader.java:141
↓ 1 callers
Method
buildTree
()
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Huffman.java:176
↓ 1 callers
Method
certOrganisation
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/JKS.java:95
↓ 1 callers
Method
certOrganizationalUnitName
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/JKS.java:99
↓ 1 callers
Method
channelRead
Read data from remote server and put it into the given buffer. @param buffer A buffer to store data. @return The read length. @throws IOException if
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/NioTunnel.java:74
↓ 1 callers
Method
channelWrite
Write the packet buffer to remote server. @param buffer A packet buffer. @return The wrote length. @throws IOException if an I/O error occurs.
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/NioTunnel.java:65
↓ 1 callers
Method
closeCodeExceptionMessage
(int code)
netbare-core/src/main/java/com/github/megatronking/netbare/ws/WebSocketProtocol.java:129
↓ 1 callers
Method
code
Returns the HTTP status code. @return Status code.
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpResponse.java:211
↓ 1 callers
Method
commonName
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/JKS.java:83
↓ 1 callers
Method
computeChecksum
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/UdpHeader.java:104
↓ 1 callers
Method
computeChecksum
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/IcmpHeader.java:79
↓ 1 callers
Method
computeChecksum
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/IpHeader.java:119
↓ 1 callers
Method
computeChecksum
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/TcpHeader.java:127
↓ 1 callers
Method
concatLengthPrefixed
()
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLRequestCodec.java:125
↓ 1 callers
Method
concatLengthPrefixed
(HttpProtocol ... protocols)
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLResponseCodec.java:159
↓ 1 callers
Method
connect
(InetSocketAddress address)
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/TcpVATunnel.java:60
↓ 1 callers
Method
connect
(InetSocketAddress address)
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/UdpVATunnel.java:80
↓ 1 callers
Method
contains
(Object o)
netbare-injector/src/main/java/com/github/megatronking/netbare/utils/CaseInsensitiveLinkedMap.java:94
↓ 1 callers
Method
create
(String id)
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSessionFactory.java:35
↓ 1 callers
Method
create
(Session session, Request request, Response response)
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/DefaultVirtualGatewayFactory.java:40
↓ 1 callers
Method
createClientContext
(String host)
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java:236
↓ 1 callers
Method
createClientEngine
Create a client {@link SSLEngine} with the remote server IP and port. @param host Remote server host. @param port Remote server port. @return A clien
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java:184
↓ 1 callers
Method
createEngine
(SSLEngineFactory factory)
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLResponseCodec.java:62
↓ 1 callers
Method
createKeystore
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/JKS.java:113
↓ 1 callers
Method
createNotification
A {@link Notification} object describing what to show the user. Must not be null. @return The Notification to be displayed.
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareService.java:68
↓ 1 callers
Method
createSSLContext
()
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java:257
↓ 1 callers
Method
createServerContext
(String host)
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java:224
↓ 1 callers
Method
createServerEngine
Create a MITM server {@link SSLEngine} with the remote server host. @param host The remote server host. @return A server {@link SSLEngine} instance.
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java:154
↓ 1 callers
Method
createTemplate
(UdpHeader header)
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/UdpVATunnel.java:181
↓ 1 callers
Method
data
()
netbare-core/src/main/java/com/github/megatronking/netbare/ip/UdpHeader.java:133
↓ 1 callers
Method
decode
(byte[] buf)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Huffman.java:104
↓ 1 callers
Method
decodeData
(ByteBuffer buffer, int length, byte flags, int streamId, DecodeCallback callback)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java:411
↓ 1 callers
Method
decodeGoAway
(ByteBuffer buffer, int length, byte flags, int streamId)
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java:435
↓ 1 callers
Method
decodeHeaderBlock
(ByteBuffer buffer, Hpack.Reader reader, byte flags, DecodeCallback callbac
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java:402
↓ 1 callers
Method
decodeHeaders
(ByteBuffer buffer, Hpack.Reader reader, int length, byte flags, int streamId,
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java:368
↓ 1 callers
Method
decodeRequest
(final ReqChain chain, ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/SSLCodecInterceptor.java:153
↓ 1 callers
Method
decodeResponse
(final HttpResponseChain chain, ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLCodecInterceptor.java:216
↓ 1 callers
Method
decodeResponse
(final ResChain chain, ByteBuffer buffer)
netbare-core/src/main/java/com/github/megatronking/netbare/gateway/SSLCodecInterceptor.java:180
↓ 1 callers
Method
decodeSettings
(ByteBuffer buffer, int length, byte flags, int streamId, Http2Updater receive
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java:309
↓ 1 callers
Method
defaultConfig
Create a default config. @return A NetBare config instance.
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:94
↓ 1 callers
Method
defaultHttpConfig
Create a default config using {@link HttpVirtualGatewayFactory} for HTTP protocol. @param jks JSK instance, not null. @param interceptors A collectio
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:82
↓ 1 callers
Method
domain
Set the domain pattern for this cookie. The cookie will match {@code domain} and all of its subdomains. @param domain The domain pattern. @return The
netbare-injector/src/main/java/com/github/megatronking/netbare/http/Cookie.java:258
↓ 1 callers
Method
dump
(int port)
netbare-core/src/main/java/com/github/megatronking/netbare/net/UidDumper.java:134
↓ 1 callers
Method
dumpUid
Dump the uid of the session, you can get the value from {@link Session#uid}. This config will cost much battery. <p>Android Q removes access to /proc
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareConfig.java:274
↓ 1 callers
Method
enableALPN
(SSLEngine sslEngine)
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLRequestCodec.java:65
← previous
next →
201–300 of 894, ranked by callers