LinuxÏÂÎļþµÄÍøÂç´«Êä
½ñÌìµÄÊÂÌ«¶à£¬Ã»ÓÐÈÏÕæµÄÍê³ÉÈÎÎñ£¬²»¹ý°Ñ·þÎñÆ÷¶ËµÄÎļþ´«Êä×öºÃÁË£¡
Ã÷Ìì°Ñ·þÎñÆ÷¶ËµÄ´úÂ뼯³ÉÆðÀ´²âÊÔһϣ¬²¢°ÑÍøÂç¿Í»§¶Ë³ÌÐò×öºÃ£¡
°Ñ´úÂëÌù³öÀ´°É£¡±ãÓÚ±£´æ£¡
Í·Îļþ£ºserver_udpsocket.h
#ifndef _SERVER_UDPSOCKET_H_
#define _SERVER_UDPSOCKET_H_
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define bool int
#define true 1
#define false 0
int errno ;
bool init_udpsocket() ;
bool udpsocket_Run() ;
void *thread_udpsocket() ;
#endif
³ÌÐòÎļþ£ºserver_udpsocket.c
#include "server_udpsocket.h"
int hsockfd; // Socket file descriptor
int hnsockfd; // New Socket file descriptor
int localport=6767 ; //Local socket port
struct sockaddr_in addr_local; //local socket address
struct sockaddr_in addr_remote; //remote socket address
int sin_size ;
//file operation
FILE *file=NULL ;
char tempbuf[65535] ;
char revbuf[15] ;
//thread
pthread_t hthread_udpsocket ;
bool init_udpsocket()
{
int ret ;
//create socket file description
hsockfd=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP) ;
if(hsockfd==-1)
{
printf("UDPSocket:failed to obtain socket descripter\n") ;
printf("Mesg:%s\n",sys_errlist[errno]) ;
return false ;
}
//fill local address
addr_local.sin_family = AF_INET; &nbs
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæÍ¼±ê
Ŀǰ½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËÆµÄ·½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
Öܺ£ºº /ÎÄ
2010.4.22
¿´¼¯ÈºµÄ¶«Î÷ʱÎÞÒâÖп´µ½¼¸ÄêǰÁ÷Ðеķֲ¼Ê½¿ÆÑ§¼ÆËãseti@home£¬ÃÀ¹ú²®¿ËÀû´óѧµÈ¿ÆÑ§½çÓÃÓÚ¼ÆËãÌìÌåÊý¾ÝµÄ¡£SETI@home ÊÇÒ»ÏîÀûÓÃÈ«ÇòÁªÍøµÄ¼ÆËã»ú¹²Í¬ËÑѰµØÍâÎÄÃ÷£¨SETI£©µÄ¿ÆÑ§ÊµÑ鼯»®¡£Äã¿ÉÒÔͨ¹ýÔËÐÐÒ»¸öÃâ·Ñ³ÌÐòÏÂÔØ²¢·ÖÎö´ÓÉäµçÍûÔ¶¾µ´«À´µÄÊý¾ÝÀ´¼ÓÈëÕâ¸öÏîÄ¿¡£ ²»¹ýÎÒÔÙ´ÎʹÓÃÆä¿Í»§¶ËÊ ......
Linux µÄ Input Device ÊÇÖØÒªµÄÒ»個 subsystem£¬ÔÚ進ÐÐ實Àý½é紹ǰ£¬ÏÈ´óÂÔÁ˽âÒ»ÏÂÏà關µÄ API¡£input.cÊÇLinuxµÄÊäÈë驅動³Ìʽ£¬Ö÷ÒªÖ§Ô®鍵盤與»¬ÊóµÄ輸È룻input.c½éÃæÌØÊâµÄµØ·½ÊÇ採ÓÃÁËʼþ£¨event£©µ ......
http://blog.csdn.net/funy_liu/archive/2010/03/04/5345589.aspx
mini2440Çý¶¯·ÖÎöϵÁÐÖ®
---------------------------------------Mini2440´¥ÃþÆÁ³ÌÐò·ÖÎö
By JeefJiang July£¬8th£¬2009
ÕâÊÇmini2440Çý¶¯·ÖÎöϵÁеĵÚÈýƪÎÄÕ£¬±¾ÎÄ·ÖΪÈý¸ö²¿·Ö£¬µÚÒ»²¿·Ö½²ÐðÓ²¼þ֪ʶ£¬°üÀ¨´¥ÃþÆÁµÄÔÀíÒÔ¼°SCC2440 SOCÉϵĴ¥ÃþÆÁÊ ......
Ò»¡¢Ê×ÏÈҪ׼±¸±ØÐëµÄÈí¼þ£¬ÎÒÑ¡Óõİ汾ÈçÏ£º
apr-1.4.2£¬ÏÂÔØµØÖ·£ºhttp://archive.apache.org/dist/apr/
apr-util-1.3.9£¬ÏÂÔØµØÖ·£ºhttp://archive.apache.org/dist/apr/
apache£¨httpd-2.2.9£©£¬ÏÂÔØµØÖ·£ºhttp://archive.apache.org/dist/httpd/
SQLite-2.6.23.1£¬ÏÂÔØµØÖ·£ºhttp://www.sqlite.org/
neon- ......