UDPPacketIO.init C# (CSharp) Method

init() public method

public init ( string hostIP, int remotePort, int localPort ) : void
hostIP string
remotePort int
localPort int
return void
  	public void init(string hostIP, int remotePort, int localPort){
        RemoteHostName = hostIP;
        RemotePort = remotePort;
        LocalPort = localPort;
        socketsOpen = false;
  	}
  	

Usage Example

Exemplo n.º 1
0
	//	float lastTime=0;

	void Start () {
		
		udp  = this.GetComponent<UDPPacketIO>();
		udp.init(UDPHost, broadcastPort, listenerPort);
		oscHandler = this.gameObject.AddComponent<Osc>();
		oscHandler.init(udp);
	}
All Usage Examples Of UDPPacketIO::init