IEnumerator SendStartInfo() { yield return(null); SendData data = new SendData(); data.cmd = SendDataType.StartInfo; data.fd = GameGlobalData.fd; udpSocket.Send(data); }
public void Send(byte[] buf, int off, int len) { // Debug.Print($"OurTransport::Send Data Length: {len}"); // Debug.Print(BitConverter.ToString(buf, off, len)); byte[] newBuf = new byte[len]; Array.Copy(buf, off, newBuf, 0, newBuf.Length); buf = newBuf; UDPChannel.Send(buf, UDPChannel, _ep); }