ÉÏ´óѧʱ×öµÄlinuxÉÏÊÓÆµ´«ÊäµÄ³ÌÐò
Ô´ÎÄÀ´×Ôhttp://blog.csdn.net/dog0138/archive/2007/03/23/1539277.aspx
C/S ¼Ü¹¹ ³ÌÐòºÜ´óÒÔ²¿·ÖÐÞ¸Ä×ÔSPCAVIEW ¼ÓÈëÁËXVID±à½âÂëºÍJRTP´«Êä ÐèÒª°²×°ÏàÓ¦µÄ¿â ÁíÍâÉãÏñÍ·ÓõÄÖÐÐÇ΢µç× ËùÒÔ Çý¶¯×îºÃ×°ÄǸöÍòÄÜÇý¶¯ ÔÚÒ»¸ö¹úÍâÍøÕ¾ÉÏÏ嵀 Íü¼ÇÊÇʲôÁË ºÃÏñ½ÐSPCAXX
Ö»ÒªÄã×°¶ÔÁ˶«Î÷ Õâ³ÌÐò±£Ö¤ÄÜÓãº-}
Îļþserver.cppÖеijÌÐò´úÂë
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <wait.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <linux/videodev.h>
#include <pthread.h>
#include "jrtplib3/rtpsession.h"
#include "jrtplib3/rtppacket.h"
#include "jrtplib3/rtpudpv4transmitter.h"
#include "jrtplib3/rtpipv4address.h"
#include "jrtplib3/rtpsessionparams.h"
#include "jrtplib3/rtperrors.h"
#include <iostream>
#include "cxvid.h"
#include "tcp.h"
#define OUTFRMNUMB 4
static int XDIM=320,YDIM=240;
uint8_t localip[] = { 202, 194, 26, 67 };
#define Packetfixlength 7000
#define frameheadfixlength 50
RTPTime delay (0.0001);
int status;
int nread;
RTPSession session;
RTPSessionParams sessionparams;
RTPUDPv4TransmissionParams transparams;
int sendpacket (unsigned char *framepointer, int framelength);
struct frame_t{
char header[5];
int nbframe;
double seqtimes;
int deltatimes;
int w;
int h;
int size;
int format;
unsigned short bright;
unsigned short contrast;
unsigned short colors;
unsigned short exposure;
unsigned char wakeup;
&n
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Linux»ù±¾Ö¸Áî
alias
ÌæÖ¸ÁîÈ¡±ðÃû
¡ò alias ÁгöĿǰϵͳËùʹÓõÄËùÓÐÖ¸Áî±ðÃû
¡ò alias ±ðÃû=Linux Ö¸ÁîÃû³Æ ´ËʱÈôÊäÈ롸±ðÃû¡¹Ôò¹¦ÄÜ»á¸úÊäÈ롸Linux Ö¸ÁîÃû³Æ¡¹Ïàͬ
¡ò ÈôÏëҪÿ´Î¿ª»ú¶¼Ê¹Óô˱ðÃû£¬ÔÚ bash ÖУ¬Ò»¶¨ÒªÔÚ .bashrc ÖÐÖ¸¶¨£¬Èç¹ûÊÇ tcsh ÖУ¬ÔòÒªÔÚ .cshrc ÖÐÖ¸¶¨
ar
½«Ðí¶àµµ°¸±¸´æ³ÉÒ»¸ö»ò¶à¸ö ......
httpd.confÎļþÅäÖÃÏê½â
ApacheµÄ»ù±¾ÉèÖÃÖ÷Òª½»ÓÉhttpd.confÀ´É趨¹ÜÀí£¬ÎÒÃÇÒªÐÞ¸ÄApacheµÄÏà¹ØÉ趨£¬Ö÷Òª»¹ÊÇͨ¹ýÐÞ¸Ähttpd.congÀ´ÊµÏÖ¡£ÏÂÃæÈÃÎÒÃÇÀ´¿´¿´httpd.confµÄÄÚÈÝ£¬ËüÖ÷Òª·Ö³É3´ó²¿·Ö£º
Section 1:Global Environment
Section 2:'Main' server configuration
Section 3:Virtual Hosts
¡¾µÚÒ»²¿·Ö¡¿
&mid ......