C# 클래스 UnityEngine.Networking.NetworkDiscovery

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
Initialize ( ) : bool

Initializes the NetworkDiscovery component.

OnReceivedBroadcast ( string fromAddress, string data ) : void

This is a virtual function that can be implemented to handle broadcast messages when running as a client.

StartAsClient ( ) : bool

Starts listening for broadcasts messages.

StartAsServer ( ) : bool

Starts sending broadcast messages.

StopBroadcast ( ) : void

Stops listening and broadcasting.

비공개 메소드들

메소드 설명
BytesToString ( byte bytes ) : string
OnDestroy ( ) : void
OnGUI ( ) : void
StringToBytes ( string str ) : byte[]
Update ( ) : void

메소드 상세

Initialize() 공개 메소드

Initializes the NetworkDiscovery component.

public Initialize ( ) : bool
리턴 bool

OnReceivedBroadcast() 공개 메소드

This is a virtual function that can be implemented to handle broadcast messages when running as a client.

public OnReceivedBroadcast ( string fromAddress, string data ) : void
fromAddress string The IP address of the server.
data string The data broadcast by the server.
리턴 void

StartAsClient() 공개 메소드

Starts listening for broadcasts messages.

public StartAsClient ( ) : bool
리턴 bool

StartAsServer() 공개 메소드

Starts sending broadcast messages.

public StartAsServer ( ) : bool
리턴 bool

StopBroadcast() 공개 메소드

Stops listening and broadcasting.

public StopBroadcast ( ) : void
리턴 void