
我写的程序
wohao2000
这个作者很懒,什么都没留下…
展开
-
DNS后台启动程序
// louis 2004-8-21#include#include#include#include#include#include#define PORT 1234int main(){ int sockfd, clientfd, childpid; struct sockaddr_in addr, cliaddr; int len = sizeof(struct sock转载 2004-08-21 16:30:00 · 1135 阅读 · 0 评论 -
与named相关
// louis 2004-7-24#include #include #include #include #include #define FILE_NAME "/var/named/master/ca"#define DATABASE "rbl"#define TABLE_CONF "configure"#define TABLE_DATA "rbl_eff"// SHELL co转载 2004-08-21 16:35:00 · 1073 阅读 · 0 评论 -
C程序:获取本机IP地址
// louis 2004-7-27#include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){ int ret; char buf[1024]; WORD wVersionRequested; WSADATA wsaData; int err; struct hostent *host; // socket initializ转载 2004-08-21 17:06:00 · 1642 阅读 · 0 评论