UnityEngine.Networking.NetworkTransport.StartBroadcastDiscoveryWithoutData C# (CSharp) Method

StartBroadcastDiscoveryWithoutData() private method

private StartBroadcastDiscoveryWithoutData ( int hostId, int broadcastPort, int key, int version, int subversion, int timeout, byte &error ) : bool
hostId int
broadcastPort int
key int
version int
subversion int
timeout int
error byte
return bool
        private static extern bool StartBroadcastDiscoveryWithoutData(int hostId, int broadcastPort, int key, int version, int subversion, int timeout, out byte error);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

コード例 #1
0
 public static bool StartBroadcastDiscovery(int hostId, int broadcastPort, int key, int version, int subversion, byte[] buffer, int size, int timeout, out byte error)
 {
     if (buffer != null)
     {
         if (buffer.Length < size)
         {
             throw new ArgumentOutOfRangeException(string.Concat(new object[]
             {
                 "Size: ",
                 size,
                 " > buffer.Length ",
                 buffer.Length
             }));
         }
         if (size == 0)
         {
             throw new ArgumentOutOfRangeException("Size is zero while buffer exists, please pass null and 0 as buffer and size parameters");
         }
     }
     if (buffer == null)
     {
         return(NetworkTransport.StartBroadcastDiscoveryWithoutData(hostId, broadcastPort, key, version, subversion, timeout, out error));
     }
     return(NetworkTransport.StartBroadcastDiscoveryWithData(hostId, broadcastPort, key, version, subversion, buffer, size, timeout, out error));
 }
All Usage Examples Of UnityEngine.Networking.NetworkTransport::StartBroadcastDiscoveryWithoutData