Lines Matching refs:sockaddr_in
170 struct sockaddr_in *sin;
174 sin = (struct sockaddr_in *)addr;
217 struct sockaddr_in *sin;
221 sin = (struct sockaddr_in *)addr;
264 struct sockaddr_in sin_s, sin_c;
322 memset(&sin_c, 0, sizeof(struct sockaddr_in));
325 sin_c.sin_len = sizeof(struct sockaddr_in);
329 memset(&sin_s, 0, sizeof(struct sockaddr_in));
332 sin_s.sin_len = sizeof(struct sockaddr_in);
337 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
341 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
346 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
350 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
356 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
360 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
365 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
369 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {