Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cbsheng committed Aug 4, 2015
1 parent 192434e commit 247de7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpleclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main(int argc, char *argv[])
//填充地址结构,指定服务器的 IP 和 端口
address.sin_family = AF_INET;
//inet_addr 可以参考 man inet_addr
//可以用现代的inet_pton()替代inet_add(), example 中有参考例子
//可以用现代的inet_pton()替代inet_addr(), example 中有参考例子
address.sin_addr.s_addr = inet_addr("127.0.0.1");
address.sin_port = htons(9734);
len = sizeof(address);
Expand Down

0 comments on commit 247de7e

Please sign in to comment.