全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1704
推到 Plurk!
推到 Facebook!

資料交換

 
is_tem
一般會員


發表:17
回覆:15
積分:11
註冊:2002-04-17

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-03-20 15:11:17 IP:219.79.xxx.xxx 訂閱
有兩台電腦,電腦 A ,電腦B。
用固定IP, TCP/IP 交流。
希望交換資料的?

如果使用 XML 如何做?
直接傳送檔案?
例子?多謝你幫忙

暗黑破壞神
版主


發表:9
回覆:2301
積分:1627
註冊:2004-10-04

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-03-20 18:10:34 IP:220.131.xxx.xxx 訂閱
>用固定IP, TCP/IP 交流。
clientsocket, serversocket 先去讀讀,試試看怎麼用。

>希望交換資料的?
先去讀一下資料結構跟演算法,然後設計通訊協定方式來交換。

>如果使用 XML 如何做?
你會 xml 的 parser 了嗎?你了解什麼是 xml 了嗎?

>直接傳送檔案?
請”先去讀一下資料結構跟演算法,然後設計通訊協定方式來交換。”
看怎麼直接傳送檔案

>例子?多謝你幫忙
例子?cvsup, ftp, apache....etc 都是例子。
幫忙?不客氣。

is_tem
一般會員


發表:17
回覆:15
積分:11
註冊:2002-04-17

發送簡訊給我
#3 引用回覆 回覆 發表時間:2007-03-20 22:53:11 IP:219.79.xxx.xxx 訂閱
>用固定IP, TCP/IP 交流。 clientsocket, serversocket 先去讀讀,試試看怎麼用。 I know that. >希望交換資料的? 先去讀一下資料結構跟演算法,然後設計通訊協定方式來交換。 Indeed socket parts have been done by other. I need to make the client parts. I can use the clientsocket and can connect with the server. I can use (1) clientsocket.socket.sendtext(....) or (2) save the text ino a file and socket.sendstream. The service does receive the information (It is because it save all the incoming message). The problem is the saved message cannot be open. Indeed, the message is in text format and can be used by any text editor. I need use an editor to open it. Whatsoever, there is a #255 character in the head of the file. I.e. at position, line 1 and column 1. I >如果使用 XML 如何做? 你會 xml 的 parser 了嗎?你了解什麼是 xml 了嗎? I used XML, but I do not know how to send XML file to another computer. I search from the net. It seems that delphi does not support Unicode. Is it correct? >直接傳送檔案? 請”先去讀一下資料結構跟演算法,然後設計通訊協定方式來交換。” 看怎麼直接傳送檔案 How can I trsnsmit XML over a TCP / IP network. >例子?多謝你幫忙 例子?cvsup, ftp, apache....etc 都是例子。 幫忙?不客氣。

系統時間:2024-05-03 21:06:13
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!