[유니티 네트워크] FTP(File Transfer Protocol)
2021. 2. 2.
using UnityEngine; using System.Net; using System.IO; public class FTP : MonoBehaviour { public string m_UserName = "id@site.com"; public string m_Password = "abcde"; void Update() { if (Input.GetKeyDown(KeyCode.U)) FtpUpload(); if (Input.GetKeyDown(KeyCode.D)) FtpDownload(); } void FtpUpload() { FtpWebRequest ftpWebRequest = (FtpWebRequest)WebRequest.Create("ftp://ftp.site.com/upload.txt"); ftp..