# 6.2.1 Constructor

### Description

It creates an Ethernet object and returns the reference

### Syntax

ENet(\<protocol>)

### Parameter

| Parameter | Description                                                                        | Remarks                                     |
| --------- | ---------------------------------------------------------------------------------- | ------------------------------------------- |
| protocol  | <p>"tcp" : TCP communication</p><p>"udp" : UDP communication</p><p></p><p></p> | If omitted, it will be recognized as "udp." |

### Return Value

Reference of the created object

### Example

```python
enet0 = ENet()
var tcp = ENet("tcp")
```

