6.2.1 Constructor

Description

It creates an Ethernet object and returns the reference

Syntax

ENet(<protocol>)

Parameter

Parameter

Description

Remarks

protocol

"tcp" : TCP communication

"udp" : UDP communication

If omitted, it will be recognized as "udp."

Return Value

Reference of the created object

Example

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

Last updated

Was this helpful?