<-- Back

# openUDP

Script that opens a UDP Socket

## Inputs

- port: UDP Port for socket
- timeout (optional): Optional parameter for time to UDP timeout (in ms)-Default 0.1 seconds

## Outputs

- Socket: UDP Socket

## Use

1. import XPlaneConnect.*;
2. Socket = openUDP(49005);%Open socket at port 49005 with timeout of 0.1 seconds
or
2. Socket = openUDP(49005,200);%Open socket at port 49005 with timeout of 0.2 seconds

## Change Log

10/02/14: [CT] V0.9: Updated to work with updated xpcPlugin
09/12/13: [CT] Added optional timeout input argument
09/10/13: [CT] Code created
<-- Back