int recvbuff(int sock)
{
char buff[1024];
bzero(buff,1024); //清0
int ret = recv(sock,buff,1024,0);
printf(buff);
return 0;
}
结果是
control connect success.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 13:58. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User root OK. Password required
。。。。