Why does OutgoingFileTransfer.sendFile use ServiceDiscovery?

Hi SMACK Community,

I’m having trouble with the OutgoingFileTransfer.sendFile(string, long, string) method where it’s failing when checking if the targetJID supports SOCKS5. The steam-neg is working fine, but then it uses ServiceDisco to determine support for SOCKS5.

My question is: why? the incoming file transfer support appears to only use stream-neg, but the outgoing is also using disco. Is this right, or is there a way to override/ignore this and only use stream-neg for outbound transfers?

UPDATE: the target supports disco, but for security purposes, only provides limited information and we don’t wish to change this. Discovery should not be required for file transfer, so if there is a way to do outbound transfer without it, please advise!



Message was edited by: Bob DeRemer