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

Çë½Ìlinux×é²¥ÎÊÌâ¡£ - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø

Îҵİå×ÓÓÃǶÈëʽlinuxϵͳ·¢ËÍ×é²¥°ü¸øÎÒPCÐéÄâ»úµÄlinux£¬ÐéÄâ»úµÄlinux¿ÉÒÔ½ÓÊÕµ½£¬µ«ÊÇͬÑùµÄ³ÌÐò£¬ÓÃÐéÄâ»úµÄlinux·¢ËÍ£¬Ç¶ÈëʽlinuxÈ´½ÓÊÕ²»µ½£¬¾ßÌå±íÏÖΪ×èÈûÔÚrecvfromº¯Êý¡£
´óÖÂÒѾ­¿ÉÒÔÅųýµÄÎÊÌ⣺
1¡¢ÍøÂç¡¢½»»»»úµÈÎÊÌ⣬2̨É豸֮¼äÖ±½ÓÓÃÍøÏßÏàÁ¬£¬²»¾­¹ýÈκÎÖмäÉ豸¡£
2¡¢Ç¶ÈëʽlinuxÄÚºËÎÊÌ⣬Äں˱àÒëʱÎÒÒѾ­Ñ¡ÉÏÖ§³Ömulticast£¬¶øÇÒǶÈëʽlinuxÄÜ·¢³ö×é²¥°ü˵Ã÷ÄÚºËÆðÂëÔÚÒ»¶¨³Ì¶ÈÉϿ϶¨Ö§³Ö×é²¥ÁË£¬µ«²»ÖªµÀÊÇ·ñ»¹ÓÐÆäËûÑ¡ÏîÐèҪѡ£¿

ÒÔÏÂÊdzÌÐò£º

½ÓÊն˳ÌÐò
-----------------
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <signal.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <memory.h>

#define PORT 9000
#define MultiAddr "224.0.1.1"
int main(void)
{
  struct ip_mreq command;
  int loop = 1;
int ttl=128;
  int iter = 0;
  int sin_len;
  char message[256];
  int socket_descriptor;
  struct sockaddr_in sin;


  memset(&sin, 0, sizeof(sin));
  sin.sin_family = AF_INET;

  sin.sin_port = htons(PORT);
  if((socket_descriptor = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
  {
  perror("socket");
 


Ïà¹ØÎÊ´ð£º

linux ·þÎñÆ÷ÄÚ´æ

ÓÐһ̨·þÎñÆ÷ÄÚ´æÊÇ8g,ÉÏÃæ¾ÍÅÜÁËÒ»¸ötomcat£¬ÆäËûʲô¶¼Ã»ÓУ¬tomcatÉèÖÃÁË×î´óÄÚ´æΪ1g,µ«ÊDz»ÖªµÀÔõô»ØÊÂÇéÄÚ´æʹÓõķdz£¶à¡£
[equitydev@szgeoweb1 ~]$ free -m
  total used ......

QT linux open - Òƶ¯Æ½Ì¨ / Qt¿ª·¢

ÇëÎʸ÷룬ÎÒÏÖÔÚÐèÒªÔÚQTϵ÷ÓÃlinuxϵÄopenº¯Êý£¬ÇëÎʸ÷λ´óÏÀÔõôдѽ£¿
ÒòΪÎÒÐèÒªopenº¯Êý·µ»ØµÄfdÖ¸Õë
include ÏàÓ¦µÄÍ·Îļþ£¬QLibrary¼ÓÔØÏàÓ¦µÄ¿â£¬»òÕß¾²Ì¬Á¬½Ó½øÈ¥¡£
È»ºótypdef¶¨Ò庯ÊýÀàÐÍ£¬È»ºóinv ......

ѧϰLinuxµÄÃÔã - C/C++ / CÓïÑÔ

ÎÒѧϰLinuxÓÐÒ»¶Îʱ¼äÁË£¬Ñ§Ï°¹ýshell½Å±¾±àд£¬¿´¹ý¡¶Unix¸ß¼¶»·¾³±à³Ì¡·£¬µ«ÊÇ×ܾõµÃ¿´µÄºÍдµÄ³ÌÐòºÜÉÙ£¬¾õµÃ¿´ÁËÖ®ºóûÓÐʲô×÷Óã¬Ö»ÊǼÇסÁËЩº¯Êý¶øÒÑ£¬Ã»ÓÐʵս¡£¶øÇҸоõÏÖÔÚѧϰLinuxºÜûÓз½Ïò£¬²»Ö ......

ÈçºÎ¿ªÊ¼Ñ§Ï° Linux ÄÚºË [ת] - C/C++ / ·Ç¼¼ÊõÇø

> Message: 1
> Date: Sat, 24 Apr 2010 11:31:02 +1000
> from: Crossfire <xfire@xware.cx>
> Subject: Re: [coders] New to Kernel programming and device drivers
> To: coders@slug. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ