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

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£Õâ¸öЭÒ鶨ÒåÁË¿Í»§ÈçºÎÄܹ»Ñ°ÕÒ»ùÓÚÌض¨ÊôÐԵķþÎñ¶ø²»Èÿͻ§ÖªµÀ¿ÉÓ÷þÎñµÄÈκÎ֪ʶ¡£SDPÌṩ·¢ÏÖзþÎñµÄ·½·¨£¬ÔÚµ±¿Í»§µÇ¼µ½ÕýÔÚ²Ù×÷µÄÀ¶ÑÀ·þÎñÆ÷µÄÒ»¸öÇøÓòʱÊÇ¿ÉÓõÄʱ¡£
Service discovery»úÖÆÌṩclientÓ¦ÓóÌÐòÕì²âserverÓ¦ÓóÌÐòÌṩµÄ·þÎñµÄÄÜÁ¦£¬²¢ÇÒÄܹ»µÃµ½·þÎñµÄÌØÐÔ¡£·þÎñµÄÆ·ÖÊ°üº¬·þÎñtype»ò·þÎñclass.
SDPÒ²ÌṩSDP serverÓëSDP clientÖ®¼äµÄͨѶ¡£SDP serverά»¤×ÅÒ»¸ö·þÎñÌõÄ¿(service record)Áбí.ÿ¸ö·þÎñÌõÄ¿ÃèÊöÒ»¸öµ¥¶ÀµÄ·þÎñÊôÐÔ¡£ SDP client¿ÉÒÔͨ¹ý·¢ËÍSDP requestÀ´µÃµ½·þÎñÌõÄ¿¡£
Èç¹ûÒ»¸öclient»òÕßÒÀ¸½ÓÚclientÖ®ÉϵÄÓ¦ÓóÌÐò¾ö¶¨Ê¹ÓÃij¸öservice. Ëü´´½¨Ò»¸öµ¥¶ÀµÄÁ¬½Óµ½serviceÌṩÕß¡£ SDP Ö»ÌṩÕì²âServiceµÄ»úÖÆ£¬µ«²»ÌṩÈçºÎÀûÓÃÕâЩServiceµÄ»úÖÆ¡£Sam¾õµÃ£¬ÕâÀïÆäʵÊÇ˵£ºSDPÖ»ÌṩÕì²âServiceµÄ°ì·¨£¬µ«ÈçºÎÓã¬SDP²»¹Ü¡£
ÿ¸öBluetooth Device×î¶àÖ»ÄÜÓµÓÐÒ»¸öSDP Server¡£Èç¹ûÒ»¸öBluetooth DeviceÖ»µ£ÈÎClient£¬ÄÇËü²»ÐèÒªSDP Server¡£µ«Ò»¸öBluetooth Device¿ÉÒÔͬʱµ£µ±SDP ServerºÍSDP client.
Service Record(Service ÌõÄ¿)£º
Ò»¸öserviceÊÇÒ»¸öʵÌåΪÁíÒ»¸öʵÌåÌṩÐÅÏ¢£¬Ö´Ðж¯×÷»ò¿ØÖÆ×ÊÔ´¡£Ò»¸öservice¿ÉÒÔÓÉÈí¼þ£¬Ó²¼þ»òÈíÓ²¼þ½áºÏÌṩ¡£
ËùÓеÄServiceÐÅÏ¢¶¼°üº¬ÓÚÒ»¸öService RecordÄÚ¡£Ò»¸öService Record °üº¬Ò»¸öService attribute(ServiceÊôÐÔ) list.
ÔÚÒ»¸öSDP ServerÄÚ£¬Ã¿¸öService RecordÓµÓÐÒ»¸ö32-bitµÄΨһÐÔÊý¾Ý¡£Í¨³££¬Õâ¸öΨһÐÔÖ»ÊÇÔÚÿ¸öSDP ServerÄÚ²¿¡£ Èç¹ûSDP Server S1 ºÍSDP Server S2ÓµÓÐͬÑùµÄÒ»¸öService Record¡£ÄÇËûÃÇÔÚ²»Í¬SDP SeverÄڵĶÀÌØÊýÖµ²¢²»Ò»¶¨Ïàͬ¡£
SDPÔÚSDP ServerÔö¼Ó»ò¼õÉÙService Recordʱ£¬²¢²»»á֪ͨSDP client.
Service Attribute(Service ÊôÐÔ)£º
ÿ¸öServiceÊôÐÔÃèÊöservcieµÄÌØÐÔ.Ò»¸öService AttributeÓÉ2²¿·Ö£º
Attribute ID + Attribute Value¡£
Attribute ID£º16-bitÎÞ·ûºÅÕûÊý£¬ÓÃÓÚÇø±ðÒ»¸öService RecordÄÚµÄÆäËüÊôÐÔ¡£
Attribute Value£ºAttributeÖµ¡£
Service Class£º
ÿ¸öServi


Ïà¹ØÎĵµ£º

Linux Telnet·þÎñ¿ªÆô

½ñÌ칫˾ÓиöͬÊÂŪÁ˸öRed Hat Enterprise 5×°£¬ÏµÍ³×°ºÃºó£¬·¢ÏÖtelnet²»ÄÜÓã¬sshÊÇ¿ÉÒԵġ£¸ãÁ˺þ㬲Ÿø¸ã¶¨£¬½áºÏÒÔǰժϵĹØÓÚÕâ·½ÃæµÄ×ÊÁÏ£¬²Î¿¼ÈçÏ£º
1¡£¸ÅÊöLinuxÌṩ·þÎñÊÇÓÉÔËÐÐÔÚºǫ́µÄÊØ»¤³ÌÐò£¨daemon£©À´Ö´Ðеġ£
ÊØ»¤½ø³ÌµÄ¹¤×÷¾ÍÊÇ´ò¿ª1¸ö¶Ë¿Ú£¨port£©£¬µÈ´ý£¨listen£©½øÈëµÄÁ¬½Ó¡£ÔÚC/SģʽÖУ¬Èç¹ ......

½â¾öÐéÄâ»úLinux UbuntuÉϹ²ÏíÖ÷»úÎļþ

Linux go on
      ÎÒµÄÖ÷»úϵͳÊÇwindows XP£¬°²×°µÄÐéÄâ»úµÄVMware 6.5¡£
      ¸Õ×°ÁËVMwareÖ®ºó£¬Äܹ»Ö±½ÓÔÚVMwareϵēÐéÄâ»ú—>ÉèÖ×>Ñ¡Ôñ—>Îļþ¹²Ïí”ÉèÖÃʵÏÖ¹²Ïí£¬µ«Êǵڶþ´Î¿ªÐéÄâ»ú¾ÍÔõôҲ²»Äܹ²ÏíÁË£¡£¡
 &n ......

Linux²»ÐèÒª´ÅÅÌËéƬÕûÀí





Linux²»ÐèÒª´ÅÅÌËéƬÕûÀí¡£
ÒÔÏÂÒý×Ôlinux¹Ù·½ÍøÕ¾¶ÔËéƬµÄ½â˵£ºÀ´Ô´ÓÚ
http://www.linux.org/docs/ldp/howto/Partition/appendix.html#fragmentation

ÒýÓÃ:
10.4. Some facts about file systems and fragmentation
Disk
space is administered by the operating system in units of ......

£ÛתÌù£ÝLinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

×ܽ᣺
zhy2111314
À´×Ô£º
LinuxSir.Org
ÕûÀí£º
±±ÄÏÄϱ±
ͻ񻣼
±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ» ......

£¨×ª£©¾­µä£ºLinux²ËÄñÈëÃż¶ÃüÁî´óÈ«

1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾÊÇÒ»¸öÁ¬½ÓÎļþ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ