月归档:六月 2010

[VC]TCP server client 代码实例

server.c // Module Name: Server.c//// Description://    This example illustrates a simple TCP server that accepts //    incoming client connections. Once a client connection is //    established, a thread is spawned to read data from the //    client and echo it … 继续阅读

发表在 技术 | 标签为 , , , | 留下评论

[Linux]nfs,tftp,rclocal

工作需要,记录下。1.nfs安装 sudo apt-get install nfs-kernel-server 编辑 sudo gedit /etc/export /nfsroot是创建的目录 权限777 /nfsroot *(rw,sync,no_root_squash) 重启 sudo /etc/init.d/nfs-kernel-server restart 检测IP,/nfsroot自己替换,/mnt为挂载目录 sudo mount -t nfs 192.168.1.103:/nfsroot /mnt 查看挂载 mount 出现如下为成功 192.168.1.103:/nfsroot on /mnt type nfs (rw,addr=192.168.1.103) 卸载 sudo umount /mnt 2.tftp安装 sudo apt-get … 继续阅读

发表在 技术 | 标签为 , , , | 留下评论