src/internet-node/tcp-socket.cc
changeset 3105 682950a37ea6
parent 3104 24d9d9aa0977
child 3107 ec3ed34b2470
child 3108 f284bfbc9e46
equal deleted inserted replaced
3104:24d9d9aa0977 3105:682950a37ea6
   433     {
   433     {
   434       return Send (p); //drop the address according to BSD manpages
   434       return Send (p); //drop the address according to BSD manpages
   435     }
   435     }
   436 }
   436 }
   437 
   437 
       
   438 // XXX Raj to make this functional
       
   439 uint32_t
       
   440 TcpSocket::GetTxAvailable (void) const
       
   441 {
       
   442   // No finite send buffer is modelled
       
   443   return 0xffffffff;
       
   444 }
       
   445 
   438 int
   446 int
   439 TcpSocket::Listen (uint32_t q)
   447 TcpSocket::Listen (uint32_t q)
   440 {
   448 {
   441   NS_LOG_FUNCTION (this << q);
   449   NS_LOG_FUNCTION (this << q);
   442   Actions_t action = ProcessEvent (APP_LISTEN);
   450   Actions_t action = ProcessEvent (APP_LISTEN);
   468 TcpSocket::GetRxAvailable (void) const
   476 TcpSocket::GetRxAvailable (void) const
   469 {
   477 {
   470   // We separately maintain this state to avoid walking the queue 
   478   // We separately maintain this state to avoid walking the queue 
   471   // every time this might be called
   479   // every time this might be called
   472   return m_rxAvailable;
   480   return m_rxAvailable;
       
   481 }
       
   482 
       
   483 // XXX Raj to finish
       
   484 void
       
   485 TcpSocket::SetSndBuf (uint32_t size)
       
   486 {
       
   487 
       
   488 }
       
   489 
       
   490 // XXX Raj to finish
       
   491 uint32_t
       
   492 TcpSocket::GetSndBuf (void) 
       
   493 {
       
   494   return 0;
       
   495 }
       
   496 
       
   497 // XXX Raj to finish
       
   498 void
       
   499 TcpSocket::SetRcvBuf (uint32_t size)
       
   500 {
       
   501 }
       
   502 
       
   503 // XXX Raj to finish
       
   504 uint32_t
       
   505 TcpSocket::GetRcvBuf (void) 
       
   506 {
       
   507   return 0;
   473 }
   508 }
   474 
   509 
   475 void
   510 void
   476 TcpSocket::ForwardUp (Ptr<Packet> packet, Ipv4Address ipv4, uint16_t port)
   511 TcpSocket::ForwardUp (Ptr<Packet> packet, Ipv4Address ipv4, uint16_t port)
   477 {
   512 {