Search Unity

System.Net.Sockets.UDPClient

Discussion in 'Multiplayer' started by Fenrisul, Feb 27, 2010.

  1. Fenrisul

    Fenrisul

    Joined:
    Jan 2, 2010
    Posts:
    618
    Is there some catch to using

    UDPClient.Receive(endpoint) ??

    Constantly getting InvalidProgramException: Invalid IL so on so forth.


    (obviously i instanced stuff)

    I can send UDP data (confirmed on the other side using a different app) just fine - just curious if there were any known issues // i just missed something with the UDPClient documentation in Mono.

    Thanks if anyone has any info :)
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    ensure that you use functions present in Mono 1.2.5 only.
    the only docs are for a much more current mono.


    Also on unity iphone you need to own Unity iPhone Advanced to use any networking (just in case)
     
  3. Fenrisul

    Fenrisul

    Joined:
    Jan 2, 2010
    Posts:
    618
    Is there anywhere I can actually check (easily) whether or not the function is in 1.25 if the docs dont exist? :p

    I'm digging through mono 1.2.5 now
     
  4. Fenrisul

    Fenrisul

    Joined:
    Jan 2, 2010
    Posts:
    618
    I wasn't able to find documentation inside of the Mono 1.2.5 build; its rather difficult to navigate too... (monodoc isn't built with the installer for Win32)

    Anyway

    the entirety of UdpClient seems to be intact... but UdpClient.Receive() constantly throws errors even when given a correct argument (as documented by the M$ .NET MSDN docs). It doesnt make sense to me that everything but Receive would function correctly so I'm missing something here... any pointers would be great heh.