![]() |
|
FTP Login response in C# - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: FTP Login response in C# (/Thread-FTP-Login-response-in-C) |
FTP Login response in C# - Ex094 - 06-29-2013 Let me get straight to the point, I'm in search of a good method or a class for FTP in C# that can get me Login response in Boolean variable. Like if the login is successful it returns true and vice versa. I have tried 4 FTP Classes from other sites and none offers such thing except only upload, download function. I've posted this thread after a long search on google and none helped. Help Would Be appreciated !
RE: FTP Login response in C# - mls577 - 06-29-2013 (06-29-2013, 10:55 AM)Ex094 Wrote: Let me get straight to the point, I'm in search of a good method or a class for FTP in C# that can get me Login response in Boolean variable. Like if the login is successful it returns true and vice versa. I have tried 4 FTP Classes from other sites and none offers such thing except only upload, download function. I've posted this thread after a long search on google and none helped. If you can't find that specifically, you could do like I did in my original python program(which ended up being difficult), you can just get the response code: http://en.wikipedia.org/wiki/List_of_FTP_server_return_codes and create your own Boolean variable if you wish. 230 is a successful login. I did it through socket, but you may be able to find a class for it. Otherwise, you can probably just check to see if you're connected and decide whether it was successful or not(like I did in my py program in the py section). RE: FTP Login response in C# - Ex094 - 06-30-2013 (06-29-2013, 07:44 PM)mls577 Wrote:(06-29-2013, 10:55 AM)Ex094 Wrote: Let me get straight to the point, I'm in search of a good method or a class for FTP in C# that can get me Login response in Boolean variable. Like if the login is successful it returns true and vice versa. I have tried 4 FTP Classes from other sites and none offers such thing except only upload, download function. I've posted this thread after a long search on google and none helped. Good idea, I'll try this. Thanks! RE: FTP Login response in C# - ArkPhaze - 06-30-2013 May I point out: ![]() .NET already has a class for FTP stuff, unless you want to recreate the wheel here and do everything through sockets directly. Status codes and everything in the System.Net namespace. |