Coder Social home page Coder Social logo

hs1xx's People

Contributors

alex-developer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hs1xx's Issues

Adding

I'm having difficulty adding this driver to my project. I do not see a .c4z or .c4i file listed. Thank you!

How to receive data from Udp

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)

end

function go ()

   C4:SendToNetwork (6001,56000,"1_0001_7_80207920180186_1_1")

end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.