Lines Matching refs:sockaddr_in
189 struct sockaddr_in *sin;
193 sin = (struct sockaddr_in *)addr;
236 struct sockaddr_in *sin;
240 sin = (struct sockaddr_in *)addr;
283 struct sockaddr_in sin_s, sin_c;
339 memset(&sin_c, 0, sizeof(struct sockaddr_in));
342 sin_c.sin_len = sizeof(struct sockaddr_in);
346 memset(&sin_s, 0, sizeof(struct sockaddr_in));
349 sin_s.sin_len = sizeof(struct sockaddr_in);
354 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
358 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
363 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {
367 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
373 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
377 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
382 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) < 0) {
386 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) < 0) {