a random port is chosen while initing socket

前端 未结 0 1742
粉色の甜心
粉色の甜心 2021-01-14 05:53
int create_socket(struct in_addr *ip, unsigned int port) {
    int s = socket(AF_INET, SOCK_STREAM, 0);
    struct sockaddr_in sin;
    memset(&sin, 0, sizeof(si         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题