telephonyprotocols/rawipnif/src/IPv4Binder.cpp
branchRCL_3
changeset 7 fe8b59ab9fa0
parent 0 3553901f7fa8
child 9 2492a6e4aed7
equal deleted inserted replaced
6:fc69e1e37771 7:fe8b59ab9fa0
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   353 MLowerDataSender::TSendResult CIPv4Binder::Send(RMBufChain& aPdu)
   353 MLowerDataSender::TSendResult CIPv4Binder::Send(RMBufChain& aPdu)
   354 /**
   354 /**
   355  * Called by the protocol to send an outgoing IP packet to the network.
   355  * Called by the protocol to send an outgoing IP packet to the network.
   356  *
   356  *
   357  * @param aPdu The outgoing packet
   357  * @param aPdu The outgoing packet
   358  * @return Standard error codes
   358  * @return MLowerDataSender::ESendBlocked or ESendAccepted based on state of flow.
   359  */
   359  */
   360 	{
   360 	{
   361 	_LOG_L1C1(_L8("CIPv4Binder::Send"));
   361 	_LOG_L1C1(_L8("CIPv4Binder::Send"));
   362 
   362 
   363 #ifdef __BTT_LOGGING__
   363 #ifdef __BTT_LOGGING__
   364 	LogPacket(aPdu);
   364 	LogPacket(aPdu);
   365 #endif
   365 #endif
   366 
   366 
   367 	// Return <0: an error occurred
   367 	// Return ESendBlocked: flow cannot accept any more packets [blocked, queue full, etc]
   368 	// Return  0: no error, but don't send any more packets
   368 	// Return ESendAccepted: flow has accepted this packet and can accept another.
   369 
   369 
   370 	return static_cast<MLowerDataSender::TSendResult>(GetFlow().SendPacket(aPdu, NULL, KIp4FrameType));
   370 	return GetFlow().SendPacket(aPdu, NULL, KIp4FrameType);
   371 	}
   371 	}
   372 
   372 
   373 TInt CIPv4Binder::Notification(TAgentToNifEventType /*aEvent*/, 
   373 TInt CIPv4Binder::Notification(TAgentToNifEventType /*aEvent*/, 
   374 	void* /*aInfo*/)
   374 	void* /*aInfo*/)
   375 /**
   375 /**