|
i am trying to connect to my ftp server using sockets...
i want to send a file every time i modify... the program is incomplete...
it is working... but i am not clear of how to keep the connection live...
i am sending the commands to port 21
out ="USER username\r\n";
out += "PASS pass\r\n";
out+= "ACCT ftp.domain.com\r\n"
out+= "LIST\r\n";
out += "CDUP\r\n";
iResult = send( ConnectSocket, out.c_str(), out.length(), 0 );
the result is - the word username will have the login name
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 5 of 50 allowed.
220-Local time is now 00:57. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User username OK. Password required
230-User username has group access to: username
230 OK. Current restricted directory is /
202 Please tell me who you are
425 No data connection
250 OK. Current directory is /
250 Logout.
if i have to send a file then how it should suppose to be ?
that is what is the rule to construct the ftp command for that...
__________________
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Is there any API in win32 to enable Junk mail options in outlook mail doing it programatically.
If so please let me know
|
|
|
|
|
I'm learning computer science by myself right now.
But I have some problems which confuse me a lot.Especially in VC++ programming.
Who kindly enough to help me? My msn wx_bornfree@live.cn.
Thanks for your help!
modified on Thursday, April 3, 2008 8:03 AM
|
|
|
|
|
|
bornunique wrote: Who kindly enough to help me? My msn wx_bornfree@live.cn.
Oooh me, me. I'll help. My rates are cheap at £100 per hour and powdered unicorn horn. Please reply me at peter@werenotstupid.com.
|
|
|
|
|
Pete O'Hanlon wrote: peter@werenotstupid.com
Ironic choice of domain considering, according to an email message I just received in reply to one I sent to you, you haven't configured your mail server correctly!
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Did you send it via CodeProject?
|
|
|
|
|
Brad - were you being serious or ironic here? If you are being serious, could you give me details please because I'll need to raise this with my infrastructure guys to find out if emails are being bounced.
|
|
|
|
|
Sorry, that was a joke. I find using the joke icon a little precocious.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Bradml wrote: Sorry, that was a joke. I
Phew - that was a team bollocking averted.
|
|
|
|
|
Pete O'Hanlon wrote: My rates are cheap at £100 per hour
You cheap bastard!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I sent a letter to peter@werenotstupid.com,but failed.
What's wrong?
|
|
|
|
|
My rates are £200 per hour (I've to pay for Pete's consultancy)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
£300,you give to me.Then you can get my £200 .Make a deal?
|
|
|
|
|
Not a good deal, no help from me, sorry.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Don't be scared!Be brave ,Be an ancient hero like Caesar.
|
|
|
|
|
Actually I'm not scared, but I'm more like a Moliere's character (you know which one ) than an Ancient personage.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
LOL,Really?Then I must be a Shakespeare's character.
|
|
|
|
|
|
could you please post your query here, instead of asking pro to come to you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
i checked this article "CUsefulSplitterWnd (an extension to CSplitterWnd)"
in ths article they replace view and use listview for this.
it is link of this article.
http://www.codeproject.com/KB/splitter/usefulsplitter.aspx[^]
i m just try to relace view with use of treeview instead of list view.
when i m try this code for tree view so it gives an error of unhandeled exeption.
"Unhandled exception at 0x782292a4 (mfc80.dll) in Data Doctor's Employee Planner.exe: 0xC0000005: Access violation reading location 0x00000050."
please help me for this.
thanks in advance.
|
|
|
|
|
How can we help when you've only provided superficial information on the crash? It's probably a NULL pointer problem. Post at least the following:
- The call stack.
- The source around the crash.
Steve
|
|
|
|
|
May be you are trying to access some uninitialized variable or something.
Best Regards,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
can u tell me how can i use above mention article with treeview inplace of listview.
thanks
|
|
|
|
|
Hi,
Please try to change the CListView to CTreeView and you may need to use different function like GetTreeCtrl().InsertItem instead of GetListCtrl().InsertItem(...)(...) etc.
Thanks,
Suman
--
"Programming is an art that fights back!"
modified on Thursday, April 3, 2008 3:48 AM
|
|
|
|