Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 12-18-2003, 10:56 AM   #1
neXus
Member
 
Join Date: Apr 2003
Posts: 47
Default [TCL] FTP Connection with SSL/TLS

hiho,

trying for hours .. but no success

PHP Code:
package require tls 1.4
package 
require ftp

set 
::ftp::VERBOSE 1
set 
::ftp::DEBUG   1

set ftp
(cntrl) [::ftp::Open $host $user $pass -port $prt -command[list ::tls::socket -require 1]] 
debug messages

PHP Code:
Starting new connection with:
  -
port xxxx
  
-command = ::tls::socket -require 1
C
Connection from xx.xx.xx.xx:xxxx
[16:50][*] + SSL-FTP connection established handle0
-> rc="220"
-> msgtext="welcome ...."
-> state="user"
---> USER neXus 
error msg :
Quote:
wrong # args: should be "tls::socket ?options? host port"
while executing
"::tls::socket -require 1 user"
("uplevel" body line 1)
invoked from within
"uplevel #0 $cb[list $msg] $args"
(procedure "Command" line 3)
invoked from within
"Command $ftp(Command) user"
("2" arm line 4)
invoked from within
"switch -exact -- $rc {
2 {
PutsCtrlSock $s "USER $ftp(User)"
set ftp(State) passwd
Comma..."
("user" arm line 2)
invoked from within
"switch -exact -- $ftp(State) {
user {
switch -exact -- $rc {
2 {
PutsCtrlSock $s "USER $ftp(U..."
(procedure "::ftp::StateHandler" line 69)
invoked from within
"::ftp::StateHandler 0 sock7"
after that i changed in ftp.tcl ( proc ::ftp::OpenControlConn {s {block 1}} { )

PHP Code:
set rc [catch {set ftp(CtrlSock) [socket $ftp(RemoteHost$ftp(Port)]} msg
to
PHP Code:
    set rc [catch {set ftp(CtrlSock) [::tls::socket $ftp(RemoteHost$ftp(Port)]} msg
that result in
PHP Code:
Starting new connection with:
  -
port xxxx
C
Connection from xx.xxx.xx.xx:xxx
SSL channel 
"sock7"errorunknown protocol
error reading 
"sock7"software caused connection abort
    
while executing
"gets $sock bufline"
    
(procedure "::ftp::StateHandler" line 16)
    
invoked from within
"::ftp::StateHandler 0 sock7" 
maybe any1 can help
neXus is offline  
Closed Thread

Tags
connection, ftp, invoked, set, user

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xbox connection problems BenArfa General Discussion 8 05-17-2005 11:50 PM
why do i get this error ? twisted General Discussion 0 05-02-2005 11:25 PM
Some Files Could Not Be Transferred CHRISKOK General Discussion 3 03-07-2005 07:11 AM
4.5.4 and pre error Borni2k Bug Reports 0 02-28-2003 09:57 AM


All times are GMT -5. The time now is 05:35 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)