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
Ïà¹ØÎĵµ£º
ת×Ôhttp://blog.csdn.net/colorant/archive/2007/04/12/1561837.aspx
1 ÊäÈë×Óϵͳ¼Ü¹¹Overview
ÊäÈë×Óϵͳ£¨Input Subsystem£©µÄ¼Ü¹¹ÈçÏÂͼËùʾ
ÊäÈë×ÓϵͳÓÉ ÊäÈë×ÓϵͳºËÐIJ㣨 Input Core £©£¬Çý¶¯²ã ......
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- ......
LinuxÏÂÅäÖþ²Ì¬IPµØÖ·£¬ÉèÖÃDNSºÍÖ÷»úÃû
ÅäÖÃÎļþλÓÚ£º
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ʹ
IPµØÖ·ÉúЧ£º
/sbin/ifdown eth0
/sbin/ifup eth0
Ö÷»úÃûÅäÖÃ /etc/sysconfig/network
NETWO ......
Ê×ÏÈÎÒÃÇÐèÒªÁ˽âlinux
ÏÂÓ²Á´½ÓÒÔ¼°ÈíÁ¬½ÓµÄ»ù±¾¸ÅÄî.
Ó²Á´½Ó£ºÐ½¨µÄÎļþÊÇÒѾ´æÔÚµÄÎļþµÄÒ»¸ö±ðÃû£¬µ±ÔÎļþɾ³ýʱ£¬Ð½¨µÄÎļþÈÔÈ»¿ÉÒÔʹÓÃ.
ÈíÁ´½Ó£ºÒ²³ÆΪ·ûºÅÁ´½Ó£¬Ð½¨µÄÎļþÒÔ“
·¾¶”
µÄÐÎʽÀ´±íʾÁíÒ»¸öÎļþ£¬ºÍWindows
µÄ¿ì½Ý·½Ê½Ê®·ÖÏàËÆ£¬Ð½¨µÄÈíÁ´½Ó¿ÉÒÔÖ¸Ïò²»´æÔÚµÄÎļþ.
ÏÂÃæÏêϸ½ ......