dcOption #

Data center

Layer 223

dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true this_port_only:flags.5?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
ipv6flags.0?trueWhether the specified IP is an IPv6 address
media_onlyflags.1?trueWhether this DC should only be used to download or upload files
tcpo_onlyflags.2?trueWhether this DC only supports connection with transport obfuscation
cdnflags.3?trueWhether this is a CDN DC.
staticflags.4?trueIf set, this IP should be used when connecting through a proxy
this_port_onlyflags.5?trueIf set, clients must connect using only the specified port, without trying any other port.
idintDC ID
ip_addressstringIP address of DC
portintPort
secretflags.10?bytesIf the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation

Type #

DcOption

Uploading and Downloading Files #

How to transfer large data batches correctly.

MTProto transports #

The list of MTProto transport protocols used to wrap payloads.

Encrypted CDNs for Speed and Security #

How client apps download popular public files from secondary CDN data centers.