Rev 4734 | Rev 4741 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4734 | Rev 4737 | ||
|---|---|---|---|
| Line 265... | Line 265... | ||
| 265 | if( type == SOCK_STREAM ){ |
265 | if( type == SOCK_STREAM ){ |
| 266 | if( ERROR_OCCURRED( listen( listening_id, 3 ))){ |
266 | if( ERROR_OCCURRED( listen( listening_id, 3 ))){ |
| 267 | socket_print_error( stderr, ERROR_CODE, "Socket listen: ", "\n" ); |
267 | socket_print_error( stderr, ERROR_CODE, "Socket listen: ", "\n" ); |
| 268 | return ERROR_CODE; |
268 | return ERROR_CODE; |
| 269 | } |
269 | } |
| 270 | }else{ |
- | |
| 271 | socket_id = listening_id; |
- | |
| 272 | } |
270 | } |
| 273 | 271 | ||
| - | 272 | socket_id = listening_id; |
|
| - | 273 | ||
| 274 | if( ERROR_OCCURRED( bind( listening_id, address, addrlen ))){ |
274 | if( ERROR_OCCURRED( bind( listening_id, address, addrlen ))){ |
| 275 | socket_print_error( stderr, ERROR_CODE, "Socket bind: ", "\n" ); |
275 | socket_print_error( stderr, ERROR_CODE, "Socket bind: ", "\n" ); |
| 276 | return ERROR_CODE; |
276 | return ERROR_CODE; |
| 277 | } |
277 | } |
| 278 | 278 | ||