Chelsio Communications Chelsio T4 Guía de usuario Pagina 172

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 374
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 171
Chapter XI. UDP Segmentation Offload and Pacing
Copyright ©2013.Chelsio Communications. All Rights Reserved. Page 172
Here:
sockfd : The file descriptor of the UDP socket
&fs / &cl : Pointer to the framesize and class variables
sizeof(fs) / sizeof(cl) : The size of the variables
v. Now, compile the application.
4.1.1. UDP offload functionality for RTP data
In case of RTP data, the video server application sends the initial sequence number and the
RTP payload. The USO engine segments the payload data, increments the sequence number
and sends out the data.
In order to use the UDP offload functionality for RTP data, make the following additions to the
steps mentioned above:
1. In step (ii), declare and initialize a new variable in the application:
int rtp_header_size=16;
Here, rtp_header_size is the RTP header size in bytes that the application sends.
2. In step (iii), define a new macro, UDP_RTPHEADERLEN used for setting RTP header
length with the value 292.
# define UDP_RTPHEADERLEN 292
3. In step (iv), define a new socket option:
setsockopt (sockfd,17,UDP_RTPHEADERLEN,&rtp_header_size,
sizeof(rtp_header_size));
Here,
&rtp_header_size : pointer to the RTP header length variable
sizeof(rtp_header_size) : the size of the RTP header length variable
Vista de pagina 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 373 374

Comentarios a estos manuales

Sin comentarios