码迷,mamicode.com
首页 >  
搜索关键字:inet_addr    ( 140个结果
socket编程基础
socket编程基础网络IP操作函数#include #inlcude #include int inet_aton(const char *cp, struct in_addr *inp);in_addr_t inet_addr(const char *cp);in_addr_t inet_net...
分类:其他好文   时间:2015-11-21 21:07:03    阅读次数:183
inet_ntoa、 inet_aton、inet_addr
inet_addr() 简述:将一个点间隔地址转换成一个in_addr。 #include unsigned long PASCAL FAR inet_addr( const struct FAR* cp); cp:一个以Internet标准“.”间隔的字符串。 注释: 本函数解释cp...
分类:Web程序   时间:2015-11-16 10:51:42    阅读次数:184
shell获取ip地址
Mac:$ ifconfig en0|awk -F"[ ]+" '/inet/{print $2}'fe80::a211:9bff:fe15:2976%en0192.168.0.100Ubuntu:$ ifconfig eth0|awk -F"[: ]+" '/inet addr/{print $4...
分类:系统相关   时间:2015-11-02 15:42:41    阅读次数:289
ACE6.2.0下载HTTP服务器文件
#include "ace/Log_Msg.h" // ACE_DEBUG的宏定义在这里.#include "ace/OS.h"#include "ace/CDR_Stream.h"#include "ace/INET_Addr.h"#include "ace/SOCK_Connector.h"#i...
分类:Web程序   时间:2015-10-26 20:17:06    阅读次数:231
搭建本地LNMP开发环境(2)-通过ssh连接到虚拟机
VMware中进入wheezy时会锁住鼠标,使用时很不方便,可以通过ssh连接到ssh解决。 需要准备的软件: SecureCRT 打开VMware,运行wheezy 使用root账户登录到wheezy 输入 ifconfig 查看wheezy的ip eth0的 inet addr显示的就是whee...
分类:其他好文   时间:2015-10-18 12:46:26    阅读次数:323
[转]树莓派(Raspberry Pi)USB无线网卡自动连接
Raspberry Pi 使用USB无线网卡的时候不会因为路由重启而掉线。1234567891011121314151617181920#!/bin/bashwhile true ;doif ifconfig wlan0 |grep -q"inet addr:" ;thensleep 60elsee...
分类:Web程序   时间:2015-08-29 06:14:42    阅读次数:223
linux网络配置
配置IP: 1‘ ifconfig临时配置IP ifconfig命令:查看与配置网络状态命令lo是Loopback的缩写,表示本地回环网卡,地址为:127.0.0.1。eth0表示第一块网卡,eth1表示第二块网卡,以此类推。其中HWaddr是MAC地址,inet addr是当前的IP地址,Bc.....
分类:系统相关   时间:2015-08-19 23:05:35    阅读次数:256
c++网络编程错误(WSAStartup)
在使用CodeBlocks编译C++程序时,编译程序的时候出现如下错误:undefined reference to `inet_addr@4'undefined reference to `gethostbyname@4'undefined reference to `WSAGetLastErro...
分类:编程语言   时间:2015-08-19 22:53:53    阅读次数:177
linux获取本机ip
ifconfig | grep -i 'inet addr:' | awk '{print $2}' | awk -F : '{print $2}' | grep [^127.0.0.1]
分类:系统相关   时间:2015-08-14 13:28:43    阅读次数:172
【linux高级程序设计】(第十三章)Linux Socket网络编程基础
IP地址定义:struct in_addr{ __u32 s_addr;};in_addr_t inet_addr (__const char * __cp) :把点分十进制IP地址字符串转换为32位IP地址(网络存储顺序)。in_addr_t inet_network (__const ch...
分类:系统相关   时间:2015-07-31 16:09:51    阅读次数:212
140条   上一页 1 ... 8 9 10 11 12 ... 14 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!