Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi

Tried doing a file transfer using brew 2.1 , used pasv and got the response too , but file transfer does not occur , instead an error is seen as follows
error : Data connection found

Hi ,
"Data Connection Found" is not an error.
If that is the state u are in, then all you have to do is to go ahead and upload your file.

Hi ,
"Data Connection Found" is not an error.
If that is the state u are in, then all you have to do is to go ahead and upload your file.

hi,
thanks for ur reply
but the error seems to have changed
i m not able to write on a socket which i have opened
say i open a socket s1 with ip address ip1 and port p1
this returns success
then i read a file(say text file) in buffer and write on socket s1 (ISocket_Write)
it gives error -1 i.e net error
on debugging further with getlasterror i found it returned socket not connected
or not supported
waiting for ur quick reply
thanks in advance
take care

hi,
thanks for ur reply
but the error seems to have changed
i m not able to write on a socket which i have opened
say i open a socket s1 with ip address ip1 and port p1
this returns success
then i read a file(say text file) in buffer and write on socket s1 (ISocket_Write)
it gives error -1 i.e net error
on debugging further with getlasterror i found it returned socket not connected
or not supported
waiting for ur quick reply
thanks in advance
take care

FTp protocol uses 2 connected sockets on each side - one for command transfers, another - for data transfers. So writing/reading the file via control connection is not a proper way at all.

FTp protocol uses 2 connected sockets on each side - one for command transfers, another - for data transfers. So writing/reading the file via control connection is not a proper way at all.

As for PASV mode connections, the control channel should return the address for you to open the data connection after you issue the PASV command (I think its response is something like "227 Entering Passive Mode (IP,loport,hiport)"..)
You should then receive/send your file through this second connection, after RETR/STOR commands.

As for PASV mode connections, the control channel should return the address for you to open the data connection after you issue the PASV command (I think its response is something like "227 Entering Passive Mode (IP,loport,hiport)"..)
You should then receive/send your file through this second connection, after RETR/STOR commands.