ChinaUnix.net
相关文章推荐:

unix 网络编程 代码

int main(int argc, char **argv) { int sockfd, n; char recvline[MAXLINE + 1]; struct sockaddr_in servaddr; if (argc != 2) err_quit("usage: a.out "); if ( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) err_sys("socket error"); bze...

by bgifu - C/C++ - 2008-11-01 22:13:13 阅读(3822) 回复(10)

相关讨论

mail:zhanghaifeng1106@sohu.com 谢谢

by fish-fly - C/C++ - 2006-06-22 12:41:40 阅读(1425) 回复(3)

郁闷啊!这两天一直在解决unix 网络编程这本书的原代码编译问题!求学过这本书的给出个解决办法!!! 真的没办法解决了,本来想好好学学这本书的,不过现在第一个原程序编译就通不过,郁闷!(自己实在是太菜了)一点办法都没有了!求大家教教我到底如何才能编译通过这些源代码吧!我用的是linux企业版操作系统,我看大家说<<unix network programming>;>;(W.Richard stevens)这本书里面的代码在linux下也可以编译通过的,但我就是没办法,求求...

by windyheart - C/C++ - 2011-08-06 14:30:27 阅读(8183) 回复(18)

请问一下,unix/Linux网络编程相关的源代码在内核目录下的哪个文件夹?

by walterpeng - Linux环境编程 - 2012-10-28 13:48:58 阅读(1474) 回复(3)

听说mac os基于unix,想买个mac pro学习unix下的编程,不知道能不能编译这两本书上的源代码还有能练习unix的shell程序设计吗

by cainong_111 - Mac OS X - 2015-09-16 15:39:58 阅读(26422) 回复(13)

从昨天等到现在,也没有一位仁兄答复一下unix网络编程(第三版)的源代码怎么在unix编译的问题。 小弟只好自己苦思冥想了一阵,终于在SunOS(unix)下编译通过。 特来告诉一些和我一样对源代码编译不过而苦恼的人: 1)昨天看了一眼README的第一项./configure # try to figure out all implementation differences 没太明白什么意思。今天打开一看,原来是一个脚本。所以大家只需在unix写入configure然后按回车(注意先让...

by gongjian001 - C/C++ - 2011-12-11 14:38:47 阅读(8695) 回复(10)

本版的不少大虾非常推崇Stevens的经典unix C/网络编程的经典数据/教程 APUE、UNP (vol1/vol2)...... 但苦于没有配套Source Code,现提供相关源代码下载地址: (W. Richard Stevens 的unix网络编程相关书籍源代码下载地址:) http://gatekeeper.dec.com/pub/published/books/ stevens.advprog.tar.Z 《unix环境高级编程》的源程序包 stevens.advprog.errta.Z 《unix环境高级编程》的源程序错误修正 stevens.netprog.tar.Z 《UN...

by xiaomiao - C/C++ - 2007-05-11 16:08:54 阅读(3272) 回复(5)

void pr_pack(buf, cc, from) char *buf; int cc; struct sockaddr_in *from; { register struct icmp *icp; register u_long l; register int i, j; register u_char *cp,*dp; static int old_rrlen; static char old_rr[MAX_IPOPTLEN]; struct ip *ip; struct timeval tv, *tp; double triptime; int hlen, dupflag; (void)gettimeofday(&tv, NULL); //其余略 }//...

by neobob - 程序开发 - 2006-05-21 18:18:07 阅读(1060) 回复(3)

void pr_pack(buf, cc, from) char *buf; int cc; struct sockaddr_in *from; { register struct icmp *icp; register u_long l; register int i, j; register u_char *cp,*dp; static int old_rrlen; static char old_rr[MAX_IPOPTLEN]; struct ip *ip; struct timeval tv, *tp; double triptime; int hlen, dupflag; (void)gettimeofday(&tv, NULL); //其余略 }//...

by neobob - Linux环境编程 - 2006-05-21 18:18:07 阅读(1606) 回复(3)

我在编译lib库的时候遇到\r\n\r\n“....unp.h:114:redefinitionof \'struct in_pktinfo...... \' \r\n\r\n不知什么原因,还往那位老大指点一二,不胜感激!

by yves4260 - 攻防交流区 - 2003-10-16 21:24:55 阅读(2710) 回复(0)

从昨天等到现在,也没有一位仁兄答复一下unix网络编程(第三版)的源代码怎么在unix编译的问题。 小弟只好自己苦思冥想了一阵,终于在SunOS(unix)下编译通过。 特来告诉一些和我一样对源代码编译不过而苦恼的人: 1)昨天看了一眼README的第一项./configure # try to figure out all implementation differences 没太明白什么意思。今天打开一看,原来是一个脚本。所以大家只需在unix写入configure然后按回车(注意...

by wenjianhn - Linux文档专区 - 2009-05-13 16:36:13 阅读(963) 回复(0)