1
0
mirror of https://github.com/danog/libtgvoip.git synced 2025-01-22 21:11:36 +01:00

I'm too lazy to come up with a commit message

This commit is contained in:
Grishka 2019-03-12 16:34:05 +03:00
parent b22fed62e6
commit ed276b4ad1
2 changed files with 2 additions and 2 deletions

View File

@ -3929,7 +3929,7 @@ void VoIPController::TickJitterBufferAngCongestionControl(){
#pragma mark - Endpoint
Endpoint::Endpoint(int64_t id, uint16_t port, IPv4Address& _address, IPv6Address& _v6address, Type type, unsigned char peerTag[16]) : address(_address), v6address(_v6address){
Endpoint::Endpoint(int64_t id, uint16_t port, const IPv4Address& _address, const IPv6Address& _v6address, Type type, unsigned char peerTag[16]) : address(_address), v6address(_v6address){
this->id=id;
this->port=port;
this->type=type;

View File

@ -126,7 +126,7 @@ namespace tgvoip{
TCP_RELAY
};
Endpoint(int64_t id, uint16_t port, IPv4Address& address, IPv6Address& v6address, Type type, unsigned char* peerTag);
Endpoint(int64_t id, uint16_t port, const IPv4Address& address, const IPv6Address& v6address, Type type, unsigned char* peerTag);
Endpoint();
~Endpoint();
const NetworkAddress& GetAddress() const;