
SrfRoG ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 52´ÎÔĶÁ)

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any ...
more

·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 49´ÎÔĶÁ)

Due to a problem with the code in crontab, a buffer overflow exists that
allows a user to overwrite the information in a saved stack frame. When
the function returns, the saved frame is popped off of the stack and
user supplied code can be executed.
...
more

jdeveloper ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 43´ÎÔĶÁ)

Example 1 Below is a simple Java program which can get the hostname of a computer
from IP address. download now
Tips
1. Compile: javac GetHost
2. Run: java GetHost 111.111.111.1(your IP or others)
import java.io.*;
import java.net.*;
//
//
// Ge...
more

jdeveloper ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 57´ÎÔĶÁ)

socket program example!
In this program, I develop an socket server running at port 5000.
Then I develop a Application client and a Applet Client program to
connect to the server and receive a message.This is very simple but
if import&nbs...
more

jdeveloper ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 53´ÎÔĶÁ)

Below is a simple example of a CORBA program
download the source file
1. produce a idl file like this
hello.idl
module HelloApp {
interface Hello {
 ...
more

www.asfocus.com ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 61´ÎÔĶÁ)

#include
#include
#include
#include
#include
#include
#define LEFT 0x4b
#define RIGHT 0x4d
#define DOWN 0x50
#define CHANGE 0x20
#define ESC 0x1b
#define INTR 0x1C
#define DefaultX 5
#define DefaultY&n...
more

Luonix Luo ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 27´ÎÔĶÁ)

FreeBSDÍêÕûµÄÄں˴úÂëÔÚFreeBSDµÄ¡°/sys¡±Ä¿Â¼Ï¡£ÆäÖУ¬FreeBSD µÄ Boot Manager´úÂëÊÇ sys£Üboot£Üi386£Üboot0£Üboot0.s£¬ËüÊÇFreeBSD×Ô´øµÄBoot Manager£¬Æä¹¦ÄÜËäÈ»²»ÈçLinuxµÄliloºÍGrub¹¦ÄÜÇ¿´ó£¬µ«ËüÖ»Ðè°´Ò»¸ö¼ü¾Í¿ÉÒÔÒýµ¼,½çÃæÖ±¹Û¡£Ð¡Ð¡µÄ512×Ö½Ú,¿ÉÒÔ¸øÄãÒ»¸ö¼òµ¥Ã÷ÁËµÄÆô¶¯Ñ¡Ôñ½çÃæ,»¹ÄܼÇסÄãÉϴεÄÑ¡Ôñ¡£ÒÔÏ£¬¾Í¶Ô´Ë´úÂë½øÐÐÏêϸ·ÖÎö¡£
µ±ÎÒÃÇ´ò¿ª¼ÆËã»úµçԴʱ£¬¼ÆËã»úß´ß´¸Â¸Â½øÐÐÉ豸ºÍÄÚ´æ¼ì²â¹ýºó¾Í¶ÁȡӲÅÌ»òÕßÈíÅ̵ÄÒýµ¼ÉÈÇø£...
more

hua_jacky1977 ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 41´ÎÔĶÁ)

ǰ¼¸ÌìΪÁ˽â¾ösinpoolÐֵġ¶¶àÏ̵߳ÄÎÊÌâ¡£¡·Ò»Ìû£¬×¨ÃÅ¿´ÁËÒ»ÏÂtomcat 4.1.30µÄÔ´Â룬ÆäÖÐÖØµãÑо¿ÁËtomcatµÄÆô¶¯ÕâÒ»²¿·Ö£¬¸öÈ˸оõtomcatµÄÔ´Â뻹ÊÇдµÄºÜÇå³þÒ×¶®£¬ÖµµÃÒ»¿´¡£(ÒÔǰ¿´¹ýstrutsµÄ²¿·Ö´úÂ룬¸Ð¾õÒ²±È½Ï¾µä£©È»ºóÎÒ¿´ºóµÄ´úÂëÕûÀíÁËһϣ¬¸½ÔÚÏÂÃæ£¬Ï£Íû¶ÔÆäËûÈËÓÐÓã¬Ò²Ï£Íû¸ÐÐËȤµÄÐֵܿÉÒÔ¶à¿´¿´ºÃµÄ´úÂ룬¿Ï¶¨¶Ô×Ô¼ºµÄ³ÌÐòÉè¼ÆºÍ´úÂëÖÊÁ¿ÆÄÓÐÒæ´¦¡£Ò». Æô¶¯Àà(°üº¬main()·½·¨µÄÀà):org.apache.catalina.startup.BootstrapÕâ¸öÀàÊÇ...
more

Ó÷·æÈÙ ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 38´ÎÔĶÁ)

2001Äê02ÔÂ05ÈÕ 21:40Õë¶ÔºÃ¶àLinux¡¡°®ºÃÕß¶ÔÄں˺ÜÓÐÐËȤȴÎÞ´ÓÏ¿ڣ¬±¾ÎÄÖ¼ÔÚ½éÉÜÒ»ÖÖ½â¶ÁlinuxÄÚºËÔ´ÂëµÄÈëÃÅ·½·¨£¬¶ø²»Êǽâ˵linux¸´ÔÓµÄÄں˻úÖÆ£»Ò»£®ºËÐÄÔ´³ÌÐòµÄÎļþ×éÖ¯£º¡¡1£®LinuxºËÐÄÔ´³ÌÐòͨ³£¶¼°²×°ÔÚ/usr/src/linuxÏ£¬¶øÇÒËüÓÐÒ»¸ö·Ç³£¼òµ¥µÄ±àºÅÔ¼¶¨£ºÈκÎżÊýµÄºËÐÄ£¨ÀýÈç2.0.30£©¶¼ÊÇÒ»¸öÎȶ¨µØ·¢ÐеĺËÐÄ£¬¶øÈÎºÎÆæÊýµÄºËÐÄ£¨ÀýÈç2.1.42£©¶¼ÊÇÒ»¸ö¿ª·¢ÖеĺËÐÄ¡£±¾ÎÄ»ùÓÚÎȶ¨µÄ2.2.5Ô´´úÂ룬µÚ¶þ²¿·ÖµÄʵÏÖÆ½Ì¨Îª¡¡Redhat¡¡Linux¡¡6.0¡£2...
more

tingya ·¢²¼ÓÚ2007-11-21 13:26:00 |
ÏêϸÄÚÈÝ( 38´ÎÔĶÁ)

9.1 Ì×½Ó×ÖµØÖ· 9.1.1Ì×½Ó×ÖµØÖ· ÔÚÁ˽âAPRÖжÔIPµØÖ·µÄ·âװ֮ǰ£¬ÎÒÃÇÊ×ÏÈ¿´Ò»ÏÂͨ³£Çé¿ö϶ÔIPµØÖ·µÄʹÓÃÇé¿ö¡£ÏÂÃæµÄ´úÂëÑÚÊÎÁ˼òµ¥µÄ·þÎñÆ÷¶ËÌ×½Ó×ֵĵØÖ·³õʼ»¯¹ý³Ì£º struct sockaddr_in server_addr; /* ±¾»úµØÖ·ÐÅÏ¢ */ server_addr.sin_family=AF_INET; server_addr.sin_port=htons(SERVPORT); server_addr.sin_addr.s_addr = INADDR_ANY; bzero(&(server_addr.sin_zero),8); ¡¡ bind(sockfd, (struct sockaddr *)&my_addr, ...
more