search for: packet_id

Displaying 5 results from an estimated 5 matches for "packet_id".

Did you mean: packet_1
2010 May 11
2
Problems plotting date and time column from excel using R
...rly =TEXT(B2,"hh:mm:ss")   and  =TEXT(B9,"mm/dd/yyyy")   The R script am using is plot.time_vs_id<- function(start,end){ setwd("C:/Documents and Settings/terry/Desktop/r_stuff") x=read.table("MAV.csv",header=T, sep=",") plot(x$time[start:end],x$packet_id[start:end],ylab="Packet ID", xlab="Time", type="p") } and plot.hov_Points <- function(start,end){ setwd("C:/Documents and Settings/terry/Desktop/r_stuff") library(rgl) t=read.table("MAV.csv",header=T, sep=",") plot3d(t$time[start:end],...
2006 Aug 06
2
Speex + Ogg package
...insert_terminator(&enc_bits); //The time stamp if(i==0) ((int*)packet)[0]=total_samples; } int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000); tam=nbBytes+4; //Now the ogg package op.packet = (unsigned char *)packet; op.bytes = nbBytes+4; op.b_o_s = 0; op.packetno = packet_id; packet_id++; ogg_stream_packetin(&os, &op); ogg_stream_flush(&os, &audio_page); return audio_page; } As for the decoder I have this. //Incoming data from udp is on buffer char *buffer=ogg_sync_buffer(&oy,4096); memcpy(buffer,buff,len); ogg_sync_wrote(&oy,len); while(ogg...
2012 Apr 25
1
forwarding packets to service in same host without using loopback network
...print_pkt (struct nfq_data *tb) { int id = 0; struct nfqnl_msg_packet_hdr *ph; struct nfqnl_msg_packet_hw *hwph; u_int32_t mark, ifi; int ret; unsigned char *data; ph = nfq_get_msg_packet_hdr (tb); if (ph) { id = ntohl (ph->packet_id); printf ("hw_protocol=0x%04x hook=%u id=%u ", ntohs (ph->hw_protocol), ph->hook, id); } hwph = nfq_get_packet_hw (tb); if (hwph) { int i, hlen = ntohs (hwph->hw_addrlen); printf ("hw_src_addr=");...
2006 Aug 06
0
Speex + Ogg package
...> if(i==0) > ((int*)packet)[0]=total_samples; > } > int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000); > tam=nbBytes+4; > > //Now the ogg package > op.packet = (unsigned char *)packet; > op.bytes = nbBytes+4; > op.b_o_s = 0; > op.packetno = packet_id; > packet_id++; > > ogg_stream_packetin(&os, &op); > ogg_stream_flush(&os, &audio_page); > > return audio_page; > } > > As for the decoder I have this. > > //Incoming data from udp is on buffer > char *buffer=ogg_sync_buffer(&oy,4096); &g...
2006 Aug 06
2
Speex + Ogg package
...t)[0]=total_samples; > > } > > int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000); > > tam=nbBytes+4; > > > > //Now the ogg package > > op.packet = (unsigned char *)packet; > > op.bytes = nbBytes+4; > > op.b_o_s = 0; > > op.packetno = packet_id; > > packet_id++; > > > > ogg_stream_packetin(&os, &op); > > ogg_stream_flush(&os, &audio_page); > > > > return audio_page; > > } > > > > As for the decoder I have this. > > > > //Incoming data from udp is on buffer &...