2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: phoneConnection
|
|
|
|
description: phoneConnection attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: phoneConnection
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|id|[long](../types/long.md) | Yes|
|
|
|
|
|ip|[string](../types/string.md) | Yes|
|
|
|
|
|ipv6|[string](../types/string.md) | Yes|
|
|
|
|
|port|[int](../types/int.md) | Yes|
|
|
|
|
|peer\_tag|[bytes](../types/bytes.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PhoneConnection](../types/PhoneConnection.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => string, 'ipv6' => string, 'port' => int, 'peer_tag' => bytes, ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"phoneConnection","id":"long","ip":"string","ipv6":"string","port":"int","peer_tag":"bytes"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
phoneConnection={_='phoneConnection', id=long, ip=string, ipv6=string, port=int, peer_tag=bytes, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|