Searched refs:bind_addr (Results 1 – 3 of 3) sorted by relevance
91 struct sockaddr_in bind_addr; in main() local134 bind_addr.sin_family = AF_INET; in main()135 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()136 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main()138 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)-2); in main()151 error = bind(fd, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()164 bind_addr.sin_addr.s_addr = inet_addr(SCTP_INV_LOOPBACK); in main()165 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()174 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()176 test_bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()[all …]
130 int Bind(const SocketAddress& bind_addr) override;
165 int PhysicalSocket::Bind(const SocketAddress& bind_addr) { in Bind() argument167 size_t len = bind_addr.ToSockAddrStorage(&addr_storage); in Bind()