使用indy10 TIdUDPClient 通过 SOCKSProxy遇到的问题
根据indy 10 的KB我按照以下步骤建立了一个UDP OVER SOCKETPROXY,
1. Create a TIdSocksInfo object and assign it to the TIdUDPClient.TransparentProxy property.
2. Set the TIdSocksInfo properties as required.
3. Call TIdUDPClient.OpenProxy just before you use any receive or send calls.
4. After completing all of your receive and send calls, call TIdUDPClient.CloseProxy.
但是在receive数据的时候出现了问题
//button1的代码,这台机器没有DELPHI环境手写的,可能有错误 IdUDPClient1.OpenProxy; IdUDPClient1.SendTo('127.0.0.1',1111,ToBytes('test'));//onrecive的代码 Memo1.Lines.Add(TimeToStr(Time)+':'+BytesToString(AData));