socksPacket property

List<int> get socksPacket

Implementation

List<int> get socksPacket => [
      0x00, 0x00, // reserved bytes
      0x00, // fragment
      AddressType.internetAddressTypeMap[remoteAddress.type]!.byte,
      ...remoteAddress.rawAddress,
      ...[(remotePort & 0xff00) >> 8, remotePort & 0x00ff],
      ...data,
    ];