Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 483 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 483 Bytes

socketTestTwo

CocoaAsyncSocket TCP connect test for swift 3.0


CocoaAsyncSocket TCP socket 練習


client端為傳送端
傳送方法寫在 @IBAction func sendImage(_ sender: UIButton) {}

server端為接收端
接收的部分寫最後面的 func socket(_ sock: GCDAsyncSocket, didRead data: Data, withTag tag: Int){}



完成進度

文字傳輸o
圖片傳輸o
視訊傳輸x