src/vfer_ccontrol.c File Reference

Implements congestion control hooks for control.c. More...

#include "vfer_ccontrol.h"

Go to the source code of this file.

Functions

int CC_Can_Send_Data (size_t data_size, vfer_sock *sock)
void CC_Recvd_Ack (packet *p, vfer_sock *sock)
void CC_Recvd_Close (packet *p, vfer_sock *sock)
void CC_Recvd_Data (packet *p, vfer_sock *sock)
void CC_Sent_CtlPack (packet *p, vfer_sock *sock)
void CC_Sent_Data (packet *p, frame_link *frame, vfer_sock *sock)


Detailed Description

Implements congestion control hooks for control.c.

Author:
Ivan Beschastnikh
This file contains functions that are called from control.c whenever cc needs to be done or queried for advice. For now this file is included in control.c and all functions are inlined for efficiency.

Definition in file vfer_ccontrol.c.


Function Documentation

int CC_Can_Send_Data ( size_t  data_size,
vfer_sock sock 
) [inline]

Determines if a data packet of specific size can be sent at this time on a socket, uses byte accounting.

Parameters:
data_size data size that control.c would like to send as a data packet
sock socket whose cc we are dealing with
Returns:
0 if CC doesn't allow for sending of data_size bytes

1 if CC does allow for sending of data_size bytes

Definition at line 65 of file vfer_ccontrol.c.

void CC_Recvd_Ack ( packet p,
vfer_sock sock 
)

Takes appropriate CC action upon receiving a cc ack packet. Currently implements a delay based CC.

Parameters:
p cc ack packet
sock socket whose cc we are dealing with

Definition at line 134 of file vfer_ccontrol.c.

void CC_Recvd_Close ( packet p,
vfer_sock sock 
)

Takes appropriate CC action upon receiving a close packet

Parameters:
p cc ack packet
sock socket whose cc we are dealing with

Definition at line 44 of file vfer_ccontrol.c.

void CC_Recvd_Data ( packet p,
vfer_sock sock 
)

Takes appropriate CC action upon receiving a data packet

Parameters:
p data packet
sock socket whose cc we are dealing with

Definition at line 95 of file vfer_ccontrol.c.

void CC_Sent_CtlPack ( packet p,
vfer_sock sock 
)

Takes appropriate CC action after having sent a control packet

Parameters:
p control packet
sock socket whose cc we are dealing with

Definition at line 32 of file vfer_ccontrol.c.

void CC_Sent_Data ( packet p,
frame_link frame,
vfer_sock sock 
) [inline]

Takes appropriate CC action after having sent a data packet

Parameters:
p data packet which was sent
frame frame pointer of which the data packet is carrying a fragment
sock socket whose cc we are dealing with

Definition at line 79 of file vfer_ccontrol.c.


Generated on Tue Aug 8 16:07:21 2006 for VFER by  doxygen 1.4.7