We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to receive data from the network through the UDP protocol. Particular port number 5600. could you help me
function ReceivedFromNetwork (idBinding, nPort, strData) print("ReceivedFromNetwork",idBinding,nPort,strData)
g_Receivebuffer = g_Receivebuffer .. strData
end
function OnNetworkBindingChanged (idBinding, bIsBound) if (idBinding == 6001) then NetworkBound = bIsBound end if (NetworkBound == true) then
-- C4:CreateNetworkConnection (6001,"255.255.255.255")
C4:NetConnect (6001,56000,'UDP') end print (bIsBound) end
function OnConnectionStatusChanged (idBinding, nPort, strStatus) print("OnConnectionStatusChanged ",strStatus)
if (idBinding == 6001) then if (strStatus == "ONLINE") then NetworkConnected = true elseif (strStatus == "OFFLINE") then NetworkConnected = false end
end print (strStatus)
function go ()
C4:SendToNetwork (6001,56000,"1_0001_7_80207920180186_1_1")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to receive data from the network through the UDP protocol. Particular port number 5600. could you help me
function ReceivedFromNetwork (idBinding, nPort, strData)
print("ReceivedFromNetwork",idBinding,nPort,strData)
g_Receivebuffer = g_Receivebuffer .. strData
end
function OnNetworkBindingChanged (idBinding, bIsBound)
if (idBinding == 6001) then
NetworkBound = bIsBound
end
if (NetworkBound == true) then
C4:NetConnect (6001,56000,'UDP')
end
print (bIsBound)
end
function OnConnectionStatusChanged (idBinding, nPort, strStatus)
print("OnConnectionStatusChanged ",strStatus)
end
print (strStatus)
end
function go ()
end
The text was updated successfully, but these errors were encountered: