Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[Unity] Listen to non unity clients??

I'd like to know if it's possible to make unity take commands from an external network device (mobile for example) that's not using unity.
Like having a mobile app to send data that's not built using unity, and consuming it later inside unity on another device.
Have a cool signature? hit me up and I might use it.
Yeah, just use the .net socket class.
You can communicate between any languages that have networking capability as long as you use the same protocols.
Lotta blood to let, peace to make, give a fuk about a check
(Nov 18, 2016 01:49 AM)BahNahNah Wrote:  Yeah, just use the .net socket class.
You can communicate between basically any languages.

wouldn't that cause blocking in the game it self??
Have a cool signature? hit me up and I might use it.
(Nov 18, 2016 01:51 AM)severos Wrote:  wouldn't that cause blocking in the game it self??

.NET comes with non-blocking sockets if you're referring to reading. So no, no it would not.
(Nov 18, 2016 01:52 AM)clrlslwi Wrote:  .NET comes with non-blocking sockets if you're referring to reading. So no, no it would not.

Cool, amazed that I got the answer here faster than I did on the official forums XD
Have a cool signature? hit me up and I might use it.
(Nov 18, 2016 02:05 AM)Yani Wrote:  Afaik Unity is just a big .NET framework, so you should be able to find anything you need by broadening your search to .NET as well.

Problem is that Unity doesn't run the latest .NET version, can't remember the exact version they're running but it's a relatively old one.
Have a cool signature? hit me up and I might use it.
(Nov 18, 2016 02:08 AM)severos Wrote:  Problem is that Unity doesn't run the latest .NET version, can't remember the exact version they're running but it's a relatively old one.

Unity uses mono, and it's .NET 3.5. It's important to remember mono, because there are internal differences that may make some code not run properly. Chances are you won't run into any issues though.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Lexxi.Dec 8, 2016 02:17 AM 3 195 Dec 8, 2016 02:17 AM
Last Post: Dеvil
[.NET] by xSilentJan 10, 2011 11:50 AM 8 158 Jan 10, 2011 11:50 AM
Last Post: GoldStar