Differences From Artifact [0c75e9be8d]:
- File
utils/ofsock/OFSock.m
— part of check-in
[97cad6d5f2]
at
2020-05-03 20:29:26
on branch trunk
— Add utils/ofsock
ofsock is a command line util to use the various socket classes in ObjFW
and connect them to stdio or each other. (user: js, size: 3482) [annotate] [blame] [check-ins using] [more...]
To Artifact [9ce3b460c5]:
- File
utils/ofsock/OFSock.m
— part of check-in
[25c985fec1]
at
2020-08-25 00:11:24
on branch trunk
— OFNumber: Remove (u)int{8,16,32,64} methods
Since C guarantees minimum sizes for char, short, int, long and long
long, these can be used instead. (user: js, size: 3481) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
58 59 60 61 62 63 64 | if (URL.port == nil) { [of_stderr writeLine: @"Need a port!"]; [OFApplication terminateWithStatus: 1]; } [sock connectToHost: URL.host | | | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | if (URL.port == nil) { [of_stderr writeLine: @"Need a port!"]; [OFApplication terminateWithStatus: 1]; } [sock connectToHost: URL.host port: URL.port.shortValue]; return [OFPair pairWithFirstObject: sock secondObject: sock]; } [of_stderr writeFormat: @"Invalid protocol: %@\n", scheme]; [OFApplication terminateWithStatus: 1]; |
︙ | ︙ |