VE Lua Documentation

Press F to search!

udp

Definition


-- @/=[C]:-1
function udp(...)

Callers

@/lua/vehicle/controller/tech/vehicleSystemsCoupling.lua

  udpSendSocket = socket.udp()      -- The UDP socket for sending data from Lua to Simulink.
  udpRecvSocket = socket.udp()      -- The UDP socket for sending data from Simulink to Lua.
  udpSendSocket = socket.udp()      -- The UDP socket for sending data from Lua to Simulink.
  udpRecvSocket = socket.udp()      -- The UDP socket for sending data from Simulink to Lua.
  -- Set up the UDP send socket.
@/lua/vehicle/protocols.lua
  protocol.nextUpdate = protocol.updateTimer:stop()
  protocol.udpSocket = socket.udp()
  if not definedStructs[protocol.name] then
@/lua/ge/extensions/core/remoteController.lua
  if udpSocket == nil then
    udpSocket = socket.udp()
    if udpSocket:setsockname('*', listenPort) == nil then
@/lua/vehicle/extensions/debug/advancedExternalDebug.lua
  if socket then
    udpSocket = socket.udp()
    udpSocket:settimeout(0.00)
@/lua/vehicle/controller/drivingDynamics/CMU.lua
  if socket then
    udpSocket = socket.udp()
    udpSocket:settimeout(0.00)
@/lua/vehicle/controller/inputOutputDemo.lua

local udpSocket = socket.udp()
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
  if enableCosim then
    udpSendSocket = socket.udp()
    local _, error = udpSendSocket:setpeername(udpSendIP, udpSendPort)
    end
    udpRecvSocket = socket.udp()
    udpRecvSocket:settimeout(0.0)
@/lua/ge/extensions/core/schemeCommandServer.lua
local function onFirstUpdate()
    udpSocket = socket.udp()
    if udpSocket:setsockname('127.0.0.1', port) == nil then