Differences From Artifact [a9b0b8f50a]:
- File src/OFTCPSocket.m — part of check-in [d87df02e8b] at 2009-04-21 17:16:23 on branch trunk — The if ((self = [super init])) construct isn't needed anymore. (user: js, size: 6113) [annotate] [blame] [check-ins using]
To Artifact [59fbba1365]:
- File
src/OFTCPSocket.m
— part of check-in
[e959fed010]
at
2009-04-26 12:44:20
on branch trunk
— A few renames in OFObject.
getMemWithSize: -> allocWithSize:
getMemForNItems:ofSize: -> allocNItems:withSize:
resizeMem:toNItems:ofSize: -> resizeMem:toNItems:withSize: (user: js, size: 6112) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
200 201 202 203 204 205 206 | socklen_t addrlen; int s; newsock = [OFTCPSocket new]; addrlen = sizeof(struct sockaddr); @try { | | | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | socklen_t addrlen; int s; newsock = [OFTCPSocket new]; addrlen = sizeof(struct sockaddr); @try { addr = [newsock allocWithSize: sizeof(struct sockaddr)]; } @catch(id e) { [newsock free]; @throw e; } if ((s = accept(sock, addr, &addrlen)) == INVALID_SOCKET) { [newsock free]; |
︙ | ︙ |