Lines Matching refs:sockaddr_in
204 struct sockaddr_in *sin;
208 sin = (struct sockaddr_in *)addr;
251 struct sockaddr_in *sin;
255 sin = (struct sockaddr_in *)addr;
298 struct sockaddr_in sin_s, sin_c;
353 memset(&sin_c, 0, sizeof(struct sockaddr_in));
356 sin_c.sin_len = sizeof(struct sockaddr_in);
360 memset(&sin_s, 0, sizeof(struct sockaddr_in));
363 sin_s.sin_len = sizeof(struct sockaddr_in);
368 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
372 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
377 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
381 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
387 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
391 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
396 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
400 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {