Overview
Comment: | Rename -[bindToPort:onHost:] to -[bindToHost:port:]. This way it's consistent with -[connectToHost:port]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b8517c63ca0bc869bf55ca76b3f04114 |
User & Date: | js on 2011-09-19 13:07:19 |
Other Links: | manifest | tags |
Context
2011-09-19
| ||
16:22 | Make using -[tryReadLine] + OFStreamObserver safe. check-in: 535c2d5d9b user: js tags: trunk | |
13:07 |
Rename -[bindToPort:onHost:] to -[bindToHost:port:]. This way it's consistent with -[connectToHost:port]. check-in: b8517c63ca user: js tags: trunk | |
12:44 | Nicer OFStreamObserver API. check-in: c279948fb8 user: js tags: trunk | |
Changes
Modified src/OFTCPSocket.h from [d3fc0d3305] to [83294d47e8].
︙ | |||
53 54 55 56 57 58 59 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - - + + - - + + | */ - (void)connectToHost: (OFString*)host port: (uint16_t)port; /** * \brief Bind the socket on the specified port and host. * |
︙ |
Modified src/OFTCPSocket.m from [ad3ac403d1] to [37dbaea5b8].
︙ | |||
197 198 199 200 201 202 203 | 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | - - + + | if (sock == INVALID_SOCKET) @throw [OFConnectionFailedException newWithClass: isa socket: self host: host port: port]; } |
︙ |
Modified tests/OFHTTPRequestTests.m from [53041a12f7] to [270eb19232].
︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | - - + + | - main { OFTCPSocket *listener, *client; [cond lock]; listener = [OFTCPSocket socket]; |
︙ |
Modified tests/OFTCPSocketTests.m from [2ddc4ec324] to [a1882e4cc9].
︙ | |||
35 36 37 38 39 40 41 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - - - + + + | OFTCPSocket *server, *client = nil, *accepted; uint16_t port; char buf[6]; TEST(@"+[socket]", (server = [OFTCPSocket socket]) && (client = [OFTCPSocket socket])) |
︙ |