src/vfer_ccontrol.h File Reference

Header file for ccontrol.c. More...

#include "vfer.h"
#include "vfer_packet.h"
#include "vfer_btree_delay.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

Header file for ccontrol.c.

Author:
Ivan Beschastnikh
This file suports ccontrol.c by defining the prototypes for the functions implemented in ccontrol.c

Definition in file vfer_ccontrol.h.


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