搜索结果
找到约 2 项符合
AF_INET 的查询结果
网络 基于Tcp(AF_INET)客户端代码,可支持多个客户端连接
基于Tcp(AF_INET)客户端代码,可支持多个客户端连接
*行业应用 client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> i
client socket
include <sys/types.h>
include <sys/socket.h>
include <stdio.h>
include <netinet/in.h>
include <arpa/inet.h>
include <unistd.h>
int main()
{
int sockfd
int len
struct sockaddr_in address
int result
char ch = A
sockfd = socket(AF_INET, SOCK_STREAM, 0)
address.sin_fami ...