sebihepp Posted September 25, 2009 Share Posted September 25, 2009 Hello, I want to build my own cockpit in near future. I already know how to export Data from Black Shark to an application via TCP-Sockets. But for my Cockpit it will be necessary to send data to BS too, For Switches f.e. . I tried to use "recv = socket.try(c:recieve("*l"))" to recieve a string terminated by a linefeed. But BS waits with the hole game until anything is sent. That's the synchron mode. Is there any possibility to ask, if there is data waiting in the buffer? Or better any way to make the connection asynchron? I searched "lua socket" via google, but I found nothing I can use. And I don't know wich library BS is using. Or is there any other way to tell BS it should perform an clickable action? best regards Sebihepp Ryzen 2700X, 32GByte RAM, GeForce 1080Ti, TrackIR Link to comment Share on other sites More sharing options...
PanelBuilder Posted September 25, 2009 Share Posted September 25, 2009 I've tried 2 methods. First is to make sure lua has something to receive, if only a line feed, every frame. Second is to configure the receive to time out. Second method is better. You need to plow through the threads here. Maybe start at Oakes combined cockpit build thread. Cheers, Colin Link to comment Share on other sites More sharing options...
sebihepp Posted September 26, 2009 Author Share Posted September 26, 2009 Okay, thanks. I will have a look at "Oakes thread". best regards Sebihepp Ryzen 2700X, 32GByte RAM, GeForce 1080Ti, TrackIR Link to comment Share on other sites More sharing options...
Recommended Posts