Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
21 lines
571 B
C++
21 lines
571 B
C++
#ifndef TGCALLS_DIRECT_CONNECTION_CHANNEL_H
|
|
#define TGCALLS_DIRECT_CONNECTION_CHANNEL_H
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace tgcalls {
|
|
|
|
class DirectConnectionChannel {
|
|
public:
|
|
virtual ~DirectConnectionChannel() = default;
|
|
|
|
virtual std::vector<uint8_t> addOnIncomingPacket(std::function<void(std::shared_ptr<std::vector<uint8_t>>)> &&) = 0;
|
|
virtual void removeOnIncomingPacket(std::vector<uint8_t> &token) = 0;
|
|
virtual void sendPacket(std::unique_ptr<std::vector<uint8_t>> &&packet) = 0;
|
|
};
|
|
|
|
} // namespace tgcalls
|
|
|
|
#endif
|