Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksdevelopers-handbooksockets_index/el/units/?format=api&page=2
https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/units/?format=api&page=3", "previous": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/units/?format=api", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Due to the complexity of internetworking, we cannot just use the `open` system call, or the `open()` C function. Instead, we need to take several steps to \"opening\" a socket." ], "previous_source": "", "target": [ "" ], "id_hash": -415233270961801257, "content_hash": -415233270961801257, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:213", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 51, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/1188102/?format=api", "priority": 100, "id": 1618965, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=7a3ccb8a4165f7d7", "url": "https://translate-dev.freebsd.org/api/units/1618965/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.793625Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Once we do, however, we can start treating the _socket_ the same way we treat any _file descriptor_: We can `read` from it, `write` to it, `pipe` it, and, eventually, `close` it." ], "previous_source": "", "target": [ "" ], "id_hash": -4115290451878437025, "content_hash": -4115290451878437025, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:216", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 52, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/1060665/?format=api", "priority": 100, "id": 1618966, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=46e38d23443a9f5f", "url": "https://translate-dev.freebsd.org/api/units/1618966/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.794260Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Essential Socket Functions" ], "previous_source": "", "target": [ "" ], "id_hash": 9130951154229694959, "content_hash": 9130951154229694959, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:218", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 53, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060667/?format=api", "priority": 100, "id": 1618967, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=feb7a7b2694dd1ef", "url": "https://translate-dev.freebsd.org/api/units/1618967/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.794884Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "While FreeBSD offers different functions to work with sockets, we only _need_ four to \"open\" a socket. And in some cases we only need two." ], "previous_source": "", "target": [ "" ], "id_hash": -8618678428203007064, "content_hash": -8618678428203007064, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:222", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 54, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1188104/?format=api", "priority": 100, "id": 1618968, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=08644da21da343a8", "url": "https://translate-dev.freebsd.org/api/units/1618968/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.795488Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The Client-Server Difference" ], "previous_source": "", "target": [ "" ], "id_hash": -440742422489989915, "content_hash": -440742422489989915, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:224", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 55, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060671/?format=api", "priority": 100, "id": 1618969, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=79e22b1a1609fce5", "url": "https://translate-dev.freebsd.org/api/units/1618969/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.796117Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Typically, one of the ends of a socket-based data communication is a _server_, the other is a _client_." ], "previous_source": "", "target": [ "" ], "id_hash": -3034563411468737065, "content_hash": -3034563411468737065, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:227", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 56, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1060673/?format=api", "priority": 100, "id": 1618970, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=55e310a7b30225d7", "url": "https://translate-dev.freebsd.org/api/units/1618970/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.796727Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The Common Elements" ], "previous_source": "", "target": [ "" ], "id_hash": -3844297172196362144, "content_hash": -3844297172196362144, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:229", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 57, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060675/?format=api", "priority": 100, "id": 1618971, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=4aa6501700327860", "url": "https://translate-dev.freebsd.org/api/units/1618971/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.797376Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "`socket`" ], "previous_source": "", "target": [ "" ], "id_hash": -7717434091701023316, "content_hash": -7717434091701023316, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:232", "context": "", "note": "type: Title =====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 58, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060677/?format=api", "priority": 100, "id": 1618972, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=14e62a9512abcdac", "url": "https://translate-dev.freebsd.org/api/units/1618972/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.798011Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The one function used by both, clients and servers, is man:socket[2]. It is declared this way:" ], "previous_source": "", "target": [ "" ], "id_hash": -4192973922514383958, "content_hash": -4192973922514383958, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:236", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 59, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1188106/?format=api", "priority": 100, "id": 1618973, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=45cf906ecc0dcbaa", "url": "https://translate-dev.freebsd.org/api/units/1618973/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.798605Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "int socket(int domain, int type, int protocol);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4855287717018918180, "content_hash": -4855287717018918180, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:240", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 60, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1060681/?format=api", "priority": 100, "id": 1618974, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=3c9e8d8bb8c522dc", "url": "https://translate-dev.freebsd.org/api/units/1618974/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.799212Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The return value is of the same type as that of `open`, an integer. FreeBSD allocates its value from the same pool as that of file handles. That is what allows sockets to be treated the same way as files." ], "previous_source": "", "target": [ "" ], "id_hash": -1258178716956050908, "content_hash": -1258178716956050908, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:245", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 61, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1188108/?format=api", "priority": 100, "id": 1618975, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=6e8a0d1f7fe0ba24", "url": "https://translate-dev.freebsd.org/api/units/1618975/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.799835Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The `domain` argument tells the system what _protocol family_ you want it to use. Many of them exist, some are vendor specific, others are very common. They are declared in [.filename]#sys/socket.h#." ], "previous_source": "", "target": [ "" ], "id_hash": -7018387873453463288, "content_hash": -7018387873453463288, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:249", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 62, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/1188110/?format=api", "priority": 100, "id": 1618976, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=1e99ad6a02e5a908", "url": "https://translate-dev.freebsd.org/api/units/1618976/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.800464Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Use `PF_INET` for UDP, TCP and other Internet protocols (IPv4)." ], "previous_source": "", "target": [ "" ], "id_hash": 6160805179787985613, "content_hash": 6160805179787985613, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:251", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 63, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1060687/?format=api", "priority": 100, "id": 1618977, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=d57f93ab6fa642cd", "url": "https://translate-dev.freebsd.org/api/units/1618977/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.801107Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Five values are defined for the `type` argument, again, in [.filename]#sys/socket.h#. All of them start with \"`SOCK_`\". The most common one is `SOCK_STREAM`, which tells the system you are asking for a _reliable stream delivery service_ (which is TCP when used with `PF_INET`)." ], "previous_source": "", "target": [ "" ], "id_hash": -210741916757095300, "content_hash": -210741916757095300, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:255", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 64, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 43, "source_unit": "https://translate-dev.freebsd.org/api/units/1188112/?format=api", "priority": 100, "id": 1618978, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=7d134b57e0688c7c", "url": "https://translate-dev.freebsd.org/api/units/1618978/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.801727Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "If you asked for `SOCK_DGRAM`, you would be requesting a _connectionless datagram delivery service_ (in our case, UDP)." ], "previous_source": "", "target": [ "" ], "id_hash": 4387103107070899682, "content_hash": 4387103107070899682, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:257", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 65, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1060691/?format=api", "priority": 100, "id": 1618979, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=bce21f0831f935e2", "url": "https://translate-dev.freebsd.org/api/units/1618979/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.802416Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "If you wanted to be in charge of the low-level protocols (such as IP), or even network interfaces (e.g., the Ethernet), you would need to specify `SOCK_RAW`." ], "previous_source": "", "target": [ "" ], "id_hash": -8627169363450805053, "content_hash": -8627169363450805053, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:259", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 66, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1060693/?format=api", "priority": 100, "id": 1618980, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=0846232c3261c4c3", "url": "https://translate-dev.freebsd.org/api/units/1618980/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.803062Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Finally, the `protocol` argument depends on the previous two arguments, and is not always meaningful. In that case, use `0` for its value." ], "previous_source": "", "target": [ "" ], "id_hash": -3378154664278670028, "content_hash": -3378154664278670028, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:262", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 67, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/1188114/?format=api", "priority": 100, "id": 1618981, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=511e623b27574534", "url": "https://translate-dev.freebsd.org/api/units/1618981/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.803688Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The Unconnected Socket" ], "previous_source": "", "target": [ "" ], "id_hash": -3723283723343529482, "content_hash": -3723283723343529482, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:264", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 68, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060697/?format=api", "priority": 100, "id": 1618982, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=4c543d2e301d79f6", "url": "https://translate-dev.freebsd.org/api/units/1618982/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.804332Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Nowhere, in the `socket` function have we specified to what other system we should be connected. Our newly created socket remains _unconnected_." ], "previous_source": "", "target": [ "" ], "id_hash": -3091316545387563772, "content_hash": -3091316545387563772, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:268", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 69, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1188116/?format=api", "priority": 100, "id": 1618983, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=55196ffaffe2f504", "url": "https://translate-dev.freebsd.org/api/units/1618983/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.804956Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "This is on purpose: To use a telephone analogy, we have just attached a modem to the phone line. We have neither told the modem to make a call, nor to answer if the phone rings." ], "previous_source": "", "target": [ "" ], "id_hash": -5541977599143491469, "content_hash": -5541977599143491469, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:271", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 70, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1188118/?format=api", "priority": 100, "id": 1618984, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=3316f0bc79e14873", "url": "https://translate-dev.freebsd.org/api/units/1618984/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.805575Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "`sockaddr`" ], "previous_source": "", "target": [ "" ], "id_hash": -3778422116710213111, "content_hash": -3778422116710213111, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:274", "context": "", "note": "type: Title =====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 71, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060703/?format=api", "priority": 100, "id": 1618985, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=4b90591a92021a09", "url": "https://translate-dev.freebsd.org/api/units/1618985/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.806194Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Various functions of the sockets family expect the address of (or pointer to, to use C terminology) a small area of the memory. The various C declarations in the [.filename]#sys/socket.h# refer to it as `struct sockaddr`. This structure is declared in the same file:" ], "previous_source": "", "target": [ "" ], "id_hash": -7801672314705913836, "content_hash": -7801672314705913836, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:279", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 72, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1188120/?format=api", "priority": 100, "id": 1618986, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=13bae45d63f45814", "url": "https://translate-dev.freebsd.org/api/units/1618986/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.806818Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "/*\n * Structure used by kernel to store most\n * addresses.\n */\nstruct sockaddr {\n\tunsigned char\tsa_len;\t\t/* total length */\n\tsa_family_t\tsa_family;\t/* address family */\n\tchar\t\tsa_data[14];\t/* actually longer; address value */\n};\n#define\tSOCK_MAXADDRLEN\t255\t\t/* longest possible addresses */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7491020500636848086, "content_hash": -7491020500636848086, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:292", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 73, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://translate-dev.freebsd.org/api/units/1060707/?format=api", "priority": 100, "id": 1618987, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=180a8c8b365f302a", "url": "https://translate-dev.freebsd.org/api/units/1618987/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.807518Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Please note the _vagueness_ with which the `sa_data` field is declared, just as an array of `14` bytes, with the comment hinting there can be more than `14` of them." ], "previous_source": "", "target": [ "" ], "id_hash": 6640159421415491312, "content_hash": 6640159421415491312, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:296", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 74, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/1060709/?format=api", "priority": 100, "id": 1618988, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=dc2695d00d6f06f0", "url": "https://translate-dev.freebsd.org/api/units/1618988/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.808154Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "This vagueness is quite deliberate. Sockets is a very powerful interface. While most people perhaps think of it as nothing more than the Internet interface-and most applications probably use it for that nowadays-sockets can be used for just about _any_ kind of interprocess communications, of which the Internet (or, more precisely, IP) is only one." ], "previous_source": "", "target": [ "" ], "id_hash": -2541750494708070467, "content_hash": -2541750494708070467, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:299", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 75, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 55, "source_unit": "https://translate-dev.freebsd.org/api/units/1188122/?format=api", "priority": 100, "id": 1618989, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=5cb9e3644f4087bd", "url": "https://translate-dev.freebsd.org/api/units/1618989/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.808800Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The [.filename]#sys/socket.h# refers to the various types of protocols sockets will handle as _address families_, and lists them right before the definition of `sockaddr`:" ], "previous_source": "", "target": [ "" ], "id_hash": 4675787958278999930, "content_hash": 4675787958278999930, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:302", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 76, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1060713/?format=api", "priority": 100, "id": 1618990, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=c0e3bc5fea44cf7a", "url": "https://translate-dev.freebsd.org/api/units/1618990/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.809453Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "/*\n * Address families.\n */\n#define\tAF_UNSPEC\t0\t\t/* unspecified */\n#define\tAF_LOCAL\t1\t\t/* local to host (pipes, portals) */\n#define\tAF_UNIX\t\tAF_LOCAL\t/* backward compatibility */\n#define\tAF_INET\t\t2\t\t/* internetwork: UDP, TCP, etc. */\n#define\tAF_IMPLINK\t3\t\t/* arpanet imp addresses */\n#define\tAF_PUP\t\t4\t\t/* pup protocols: e.g. BSP */\n#define\tAF_CHAOS\t5\t\t/* mit CHAOS protocols */\n#define\tAF_NS\t\t6\t\t/* XEROX NS protocols */\n#define\tAF_ISO\t\t7\t\t/* ISO protocols */\n#define\tAF_OSI\t\tAF_ISO\n#define\tAF_ECMA\t\t8\t\t/* European computer manufacturers */\n#define\tAF_DATAKIT\t9\t\t/* datakit protocols */\n#define\tAF_CCITT\t10\t\t/* CCITT protocols, X.25 etc */\n#define\tAF_SNA\t\t11\t\t/* IBM SNA */\n#define AF_DECnet\t12\t\t/* DECnet */\n#define AF_DLI\t\t13\t\t/* DEC Direct data link interface */\n#define AF_LAT\t\t14\t\t/* LAT */\n#define\tAF_HYLINK\t15\t\t/* NSC Hyperchannel */\n#define\tAF_APPLETALK\t16\t\t/* Apple Talk */\n#define\tAF_ROUTE\t17\t\t/* Internal Routing Protocol */\n#define\tAF_LINK\t\t18\t\t/* Link layer interface */\n#define\tpseudo_AF_XTP\t19\t\t/* eXpress Transfer Protocol (no AF) */\n#define\tAF_COIP\t\t20\t\t/* connection-oriented IP, aka ST II */\n#define\tAF_CNT\t\t21\t\t/* Computer Network Technology */\n#define pseudo_AF_RTIP\t22\t\t/* Help Identify RTIP packets */\n#define\tAF_IPX\t\t23\t\t/* Novell Internet Protocol */\n#define\tAF_SIP\t\t24\t\t/* Simple Internet Protocol */\n#define\tpseudo_AF_PIP\t25\t\t/* Help Identify PIP packets */\n#define\tAF_ISDN\t\t26\t\t/* Integrated Services Digital Network*/\n#define\tAF_E164\t\tAF_ISDN\t\t/* CCITT E.164 recommendation */\n#define\tpseudo_AF_KEY\t27\t\t/* Internal key-management function */\n#define\tAF_INET6\t28\t\t/* IPv6 */\n#define\tAF_NATM\t\t29\t\t/* native ATM access */\n#define\tAF_ATM\t\t30\t\t/* ATM */\n#define pseudo_AF_HDRCMPLT 31\t\t/* Used by BPF to not rewrite headers\n\t\t\t\t\t * in interface output routine\n\t\t\t\t\t */\n#define\tAF_NETGRAPH\t32\t\t/* Netgraph sockets */\n#define\tAF_SLOW\t\t33\t\t/* 802.3ad slow protocol */\n#define\tAF_SCLUSTER\t34\t\t/* Sitara cluster protocol */\n#define\tAF_ARP\t\t35\n#define\tAF_BLUETOOTH\t36\t\t/* Bluetooth sockets */\n#define\tAF_MAX\t\t37\n" ], "previous_source": "", "target": [ "" ], "id_hash": -655825785989264636, "content_hash": -655825785989264636, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:351", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 77, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 322, "source_unit": "https://translate-dev.freebsd.org/api/units/1060715/?format=api", "priority": 100, "id": 1618991, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=76e609ec1f918b04", "url": "https://translate-dev.freebsd.org/api/units/1618991/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.810505Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The one used for IP is AF_INET. It is a symbol for the constant `2`." ], "previous_source": "", "target": [ "" ], "id_hash": -5325770978824991836, "content_hash": -5325770978824991836, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:355", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 78, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1188124/?format=api", "priority": 100, "id": 1618992, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=36170f830c0d4ba4", "url": "https://translate-dev.freebsd.org/api/units/1618992/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.811388Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "It is the _address family_ listed in the `sa_family` field of `sockaddr` that decides how exactly the vaguely named bytes of `sa_data` will be used." ], "previous_source": "", "target": [ "" ], "id_hash": 2054143144268934573, "content_hash": 2054143144268934573, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:357", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 79, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1060719/?format=api", "priority": 100, "id": 1618993, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=9c81c84e6ff42dad", "url": "https://translate-dev.freebsd.org/api/units/1618993/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.812003Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Specifically, whenever the _address family_ is AF_INET, we can use `struct sockaddr_in` found in [.filename]#netinet/in.h#, wherever `sockaddr` is expected:" ], "previous_source": "", "target": [ "" ], "id_hash": 676621319002512692, "content_hash": 676621319002512692, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:359", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 80, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1060721/?format=api", "priority": 100, "id": 1618994, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=8963d7813699dd34", "url": "https://translate-dev.freebsd.org/api/units/1618994/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.812636Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "/*\n * Socket address, internet style.\n */\nstruct sockaddr_in {\n\tuint8_t\t\tsin_len;\n\tsa_family_t\tsin_family;\n\tin_port_t\tsin_port;\n\tstruct\tin_addr sin_addr;\n\tchar\tsin_zero[8];\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2776113275169330655, "content_hash": 2776113275169330655, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:372", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 81, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1060723/?format=api", "priority": 100, "id": 1618995, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=a686bc50b6b6d5df", "url": "https://translate-dev.freebsd.org/api/units/1618995/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.813332Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "We can visualize its organization this way:" ], "previous_source": "", "target": [ "" ], "id_hash": 2843608407884114249, "content_hash": 2843608407884114249, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:375", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 82, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1060725/?format=api", "priority": 100, "id": 1618996, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=a77686c7e83f2949", "url": "https://translate-dev.freebsd.org/api/units/1618996/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.814016Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sockaddr_in structure" ], "previous_source": "", "target": [ "" ], "id_hash": -1562164517578572650, "content_hash": -1562164517578572650, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:376", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 83, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1060727/?format=api", "priority": 100, "id": 1618997, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=6a5213a5e1027c96", "url": "https://translate-dev.freebsd.org/api/units/1618997/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.814632Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sain.png" ], "previous_source": "", "target": [ "" ], "id_hash": -8767640019635932434, "content_hash": -8767640019635932434, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:377", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 84, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060729/?format=api", "priority": 100, "id": 1618998, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=065315dae719f2ee", "url": "https://translate-dev.freebsd.org/api/units/1618998/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.815229Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The three important fields are `sin_family`, which is byte 1 of the structure, `sin_port`, a 16-bit value found in bytes 2 and 3, and `sin_addr`, a 32-bit integer representation of the IP address, stored in bytes 4-7." ], "previous_source": "", "target": [ "" ], "id_hash": 478726931181597897, "content_hash": 478726931181597897, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:380", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 85, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1060731/?format=api", "priority": 100, "id": 1618999, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=86a4c79b857df4c9", "url": "https://translate-dev.freebsd.org/api/units/1618999/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.815819Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Now, let us try to fill it out. Let us assume we are trying to write a client for the _daytime_ protocol, which simply states that its server will write a text string representing the current date and time to port 13. We want to use TCP/IP, so we need to specify `AF_INET` in the address family field. `AF_INET` is defined as `2`. Let us use the IP address of `192.43.244.18`, which is the time server of US federal government (`time.nist.gov`)." ], "previous_source": "", "target": [ "" ], "id_hash": 1725016056658835967, "content_hash": 1725016056658835967, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:386", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 86, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 81, "source_unit": "https://translate-dev.freebsd.org/api/units/1188126/?format=api", "priority": 100, "id": 1619000, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=97f07cf6c8feb9ff", "url": "https://translate-dev.freebsd.org/api/units/1619000/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.816455Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Specific example of sockaddr_in" ], "previous_source": "", "target": [ "" ], "id_hash": 7212805473121947342, "content_hash": 7212805473121947342, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:387", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 87, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1060735/?format=api", "priority": 100, "id": 1619001, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=e419085cdb6d4ece", "url": "https://translate-dev.freebsd.org/api/units/1619001/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.817136Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sainfill.png" ], "previous_source": "", "target": [ "" ], "id_hash": 497583211678219575, "content_hash": 497583211678219575, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:388", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 88, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060737/?format=api", "priority": 100, "id": 1619002, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=86e7c54b72473d37", "url": "https://translate-dev.freebsd.org/api/units/1619002/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.817746Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "By the way the `sin_addr` field is declared as being of the `struct in_addr` type, which is defined in [.filename]#netinet/in.h#:" ], "previous_source": "", "target": [ "" ], "id_hash": -4400688296810244045, "content_hash": -4400688296810244045, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:391", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 89, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/1060739/?format=api", "priority": 100, "id": 1619003, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=42ed9d4f55681833", "url": "https://translate-dev.freebsd.org/api/units/1619003/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.818343Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "/*\n * Internet address (a structure for historical reasons)\n */\nstruct in_addr {\n\tin_addr_t s_addr;\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 6206959945460570841, "content_hash": 6206959945460570841, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:400", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 90, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1060741/?format=api", "priority": 100, "id": 1619004, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=d6238d2f3c415ad9", "url": "https://translate-dev.freebsd.org/api/units/1619004/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.819010Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "In addition, `in_addr_t` is a 32-bit integer." ], "previous_source": "", "target": [ "" ], "id_hash": -5064186722313848821, "content_hash": -5064186722313848821, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:403", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 91, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1060743/?format=api", "priority": 100, "id": 1619005, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=39b86501dc3bb80b", "url": "https://translate-dev.freebsd.org/api/units/1619005/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.819625Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "The `192.43.244.18` is just a convenient notation of expressing a 32-bit integer by listing all of its 8-bit bytes, starting with the _most significant_ one." ], "previous_source": "", "target": [ "" ], "id_hash": 6709787570562653714, "content_hash": 6709787570562653714, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:405", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 92, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1060745/?format=api", "priority": 100, "id": 1619006, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=dd1df43ed5b7de12", "url": "https://translate-dev.freebsd.org/api/units/1619006/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.820224Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "So far, we have viewed `sockaddr` as an abstraction. Our computer does not store `short` integers as a single 16-bit entity, but as a sequence of 2 bytes. Similarly, it stores 32-bit integers as a sequence of 4 bytes." ], "previous_source": "", "target": [ "" ], "id_hash": 5872936694502656551, "content_hash": 5872936694502656551, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:409", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 93, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/1188128/?format=api", "priority": 100, "id": 1619007, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=d180dcceb8300a27", "url": "https://translate-dev.freebsd.org/api/units/1619007/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.820862Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Suppose we coded something like this:" ], "previous_source": "", "target": [ "" ], "id_hash": 4998658889451705143, "content_hash": 4998658889451705143, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:411", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 94, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1060749/?format=api", "priority": 100, "id": 1619008, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=c55ecdc6a31e1337", "url": "https://translate-dev.freebsd.org/api/units/1619008/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.821486Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sa.sin_family = AF_INET;\nsa.sin_port = 13;\nsa.sin_addr.s_addr = (((((192 << 8) | 43) << 8) | 244) << 8) | 18;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6663816992775235507, "content_hash": -6663816992775235507, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:417", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 95, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1060751/?format=api", "priority": 100, "id": 1619009, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=23855dc0616b984d", "url": "https://translate-dev.freebsd.org/api/units/1619009/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.822092Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "What would the result look like?" ], "previous_source": "", "target": [ "" ], "id_hash": 5946591861823201924, "content_hash": 5946591861823201924, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:420", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 96, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1060753/?format=api", "priority": 100, "id": 1619010, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=d28689cabc336284", "url": "https://translate-dev.freebsd.org/api/units/1619010/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.822691Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "Well, that depends, of course. On a Pentium(R), or other x86, based computer, it would look like this:" ], "previous_source": "", "target": [ "" ], "id_hash": 3137722078797349664, "content_hash": 3137722078797349664, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:423", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 97, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1188130/?format=api", "priority": 100, "id": 1619011, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=ab8b6d9b369dc320", "url": "https://translate-dev.freebsd.org/api/units/1619011/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.823307Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sockaddr_in on an Intel system" ], "previous_source": "", "target": [ "" ], "id_hash": -4377486800211388297, "content_hash": -4377486800211388297, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:424", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 98, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1060757/?format=api", "priority": 100, "id": 1619012, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=43400af2b8705877", "url": "https://translate-dev.freebsd.org/api/units/1619012/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.823914Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "sainlsb.png" ], "previous_source": "", "target": [ "" ], "id_hash": -5124403469393010728, "content_hash": -5124403469393010728, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:425, documentation/content/en/books/developers-handbook/sockets/_index.adoc:471", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 99, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060759/?format=api", "priority": 100, "id": 1619013, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=38e27631e10cdfd8", "url": "https://translate-dev.freebsd.org/api/units/1619013/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.824549Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/el/?format=api", "source": [ "On a different system, it might look like this:" ], "previous_source": "", "target": [ "" ], "id_hash": -6897380038022815480, "content_hash": -6897380038022815480, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:428", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 100, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1060761/?format=api", "priority": 100, "id": 1619014, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/el/?checksum=2047956638c7a108", "url": "https://translate-dev.freebsd.org/api/units/1619014/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2024-02-17T12:24:33.825168Z" } ] }{ "count": 272, "next": "