客戶端程序需要知道服務器程序所運行在的計算機名稱或IP地址以及偵聽的端口號,然后創建遠程對象的實例,并且創建DataTable以便接收返回的數據,代碼如下:
…… string RemoteURL; Host = txtHost.Text; Port = txtPort.Text; RemoteURL = "tcp://" + Host + ":" + Port + "/RithiaTestAccessServer"; |
發布: 2008-5-15 09:46 | 作者: 不詳 | 來源: csai | 查看: 131次 | 進入軟件測試論壇討論
…… string RemoteURL; Host = txtHost.Text; Port = txtPort.Text; RemoteURL = "tcp://" + Host + ":" + Port + "/RithiaTestAccessServer"; |