G guxlei Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-01 #1 serversocket连接很多客户端。怎样向某一个客户端发送信息?
G guxlei Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-01 #2 serversocket连接很多客户端。怎样向某一个客户端发送信息?
L leadyli Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-01 #4 通過IP地址 for i := 0 to ServerSocket1.Socket.ActiveConnections - 1 do if serversocket1.Socket.Connections.LocalAddress = 'IP地址' then ServerSocket1.Socket.Connections.SendText('字符串');
通過IP地址 for i := 0 to ServerSocket1.Socket.ActiveConnections - 1 do if serversocket1.Socket.Connections.LocalAddress = 'IP地址' then ServerSocket1.Socket.Connections.SendText('字符串');
L leadyli Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-01 #6 ServerSocket1.Socket.Connections.LocalHost 計算機名稱
G guxlei Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-01 #7 客户端连接服务器端是不是会产生一个handle,如果是可以通过这个发送吗?
K Kensa Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-02 #10 但有客户端连接上来的时候,记住它的handle,后面在所有的连接当中查找handle相同的就是那个连接,每一个连接的handle都是不同的。
D dongy_143 Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-02 #11 这个肯定要通过IP发送的; 不然不好办...