Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÖпͻ§¶ËÏò·þÎñ¶Ë¶Áȡʱ¼äµÄ¼òµ¥ÊµÏÖ

    ¿Í»§¶ËµÄÁ¬½ÓµÄÖ÷Òª²½ÖèÓгõʼ»¯Ì×½Ó×Ö(socket)£¬Á¬½Ó·þÎñ¶Ë(connect)£¬½ÓÊÕ/·¢ËÍ(send/recv)£¬¹Ø±Õ(close)µÈ¡£
    ·þÎñ¶ËµÄÁ¬½ÓµÄÖ÷Òª²½ÖèÓгõʼ»¯Ì×½Ó×Ö(socket)£¬°î¶¨(bind)£¬¼àÌý(listen)£¬½ÓÊÕ/·¢ËÍ(send/recv)£¬¹Ø±Õ(close)µÈ¡£
    ÓÉÓÚÔÚLinuxÖÐËùÓÐÉ豸¶¼¿ÉÒÔ¿´×÷Îļþ£¬½ÓÊÕ/·¢ËÍ(send/recv)Ò²¿ÉÒÔÓÃwrite/readÀ´´úÌæ¡£
ÏÂÃæÊÇ·þÎñ¶Ëservice.cµÄ´úÂ룺
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#define HOSTNAMELEN 40 //Ö÷»úÃû³¤¶È
#define BUFLEN 1024
#define PORT 13000 //¶Ë¿Ú
int main(int argc, char *argv[])
{
int rc;
int s1;
int sockfd;
char buf[BUFLEN+1];
char* pc;
struct sockaddr_in local;
struct hostent* hen;
//Ö÷»ú
hen = gethostbyname("127.0.0.1");
if (!hen)
{
perror("couldn't resolve host name");
exit(1);
}
//³õʼ»¯
memset(&local, 0, sizeof(local));
local.sin_family = AF_INET;
local.sin_port = htons(PORT);
memcpy(&local.sin_addr.s_addr, hen->h_addr_list[0], hen->h_length);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
{
perror("socket() failed");
exit(1);
}
//°î¶¨
rc = bind(sockfd,(struct sockaddr *)&local,sizeof(local));
if (rc<0)
{
perror("bind() failed");
exit (1);
}
//¼àÌý
rc=listen(sockfd,5);
if (rc)
{
perror("listen() failed");
exit(1);
}
//½ÓÊÕ
s1=accept(sockfd,NULL,NULL);
if(s1<0)
{
perror("accpet() failed");
exit(1);
}
//È¡µÃʱ¼ä
time_t ti;
ti=time(NULL);
char str[100];
sprintf(str,ct


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linux vim

ÕâÓм¸ÆªÎÄÕ£¬ÖµµÃÒ»¶Á
http://blog.csdn.net/wuxiaoming1733/archive/2008/10/29/3175296.aspx
http://blog.csdn.net/wooin/archive/2006/12/30/1468797.aspx
http://blog.csdn.net/wooin/archive/2006/03/10/620791.aspx
http://blog.csdn.net/wuxiaoming1733/archive/2008/10/13/3068226.aspx
http://blog.csdn.ne ......

linux 64bit _ php Ìí¼Ó tidy Ö§³Ö _ ±Ê¼Ç

# °²×°tidy
yum install tidy libtidy-devel
# ¸øphpÌí¼ÓtidyÄ£¿é
wget http://pecl.php.net/get/tidy-1.2.tgz
tar -xvzf tidy-1.2.tgz
cd tidy-1.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --libdir=/usr/lib64
make
make install
echo "extension="tidy.so"" ......

ÔÚLinuxϵͳÉÏʵÏÖÓÃPythonÔ¶³Ì·ÃÎÊOracleÊý¾Ý¿â

1¡¢ÏÂÔØoracleÈí¼þ
http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
oracle-instantclient-basic-10.2.0.4-1.i386.rpm
oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
oracle-instantclient-devel-10.2.0.4-1.i386.rpm
2¡¢°²×°rpm°ü
rpm -ivh oracle-instantclient-basic-10.2.0.4 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ