Skip to contentSkip to conversation

Demo apps myftp

Question Nguyễn Phước Thành 2 participants 2 messages May 28, 2011 – May 30, 2011 SCTP protocol

lore
Share & tools
lore
#0 lore raw

In code myftp.c, function command_recv. If filename to save =NULL, fd=1

if ( filename = NULL ) fd = 1;
else if ( (fd =
open(filename,O_WRONLY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE)) = -1 )

When if receiver file ,Where is this endpoint will save file? I am trying send file 300MB, but it slow (than 2 hours).And I don't know where myftp save this file.

#1 lore raw

In code myftp.c, function command_recv. If filename to save =NULL, fd=1

Quoted 6 lines

if ( filename = NULL ) fd = 1;
else if ( (fd = open(filename,O_WRONLY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE)) = -1 )

When if receiver file ,Where is this endpoint will save file?
I am trying send file 300MB, but it slow (than 2 hours).And I don't know where myftp save this file.

fd = 1 means that file is output to stdout.

Quoted 5 lines
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html