ns-allinone-2.35/ns-2.35/baytcp/ftps.cc
void FtpSrvrAgent::recv(Packet*, BayFullTcpAgent* tcp, int code)
{
  if(code == DATA_PUSH) {
    int length = filesize_;
    //tells tcp-full with my mods to send FIN when empty
    tcp->advance(length, 1);
  }
}
//should only be called when a get is received from a client
//need to make sure it goes to the right tcp connection
should only be called when a get is received from a client
need to make sure it goes to the right tcp connection
should only be called when a get is received from a client need to make sure it goes to the right tcp connection
void FtpSrvrAgent::recv(Packet*, BayFullTcpAgent* tcp, int code)
{
  if(code == DATA_PUSH) {
    int length = filesize_;
    tcp->advance(length, 1);
  }
}
void FtpSrvrAgent :: recv ( Packet * , BayFullTcpAgent * tcp , int code ) { if ( code == DATA_PUSH ) { int length = filesize_ ; tcp -> advance ( length , 1 ) ; } }
should only be called when a get is received from a client
need to make sure it goes to the right tcp connection
should only be called when a get is received from a client need to make sure it goes to the right tcp connection
//tells tcp-full with my mods to send FIN when empty