Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksdevelopers-handbooksockets_index/pl/units/?format=api&page=3
https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/units/?format=api&page=4", "previous": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/units/?format=api&page=2", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "sockaddr_in on an MSB system" ], "previous_source": "", "target": [ "" ], "id_hash": 3631460436263485582, "content_hash": 3631460436263485582, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:429", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 101, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1060763/?format=api", "priority": 100, "id": 1506933, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=b2658a06c75ec08e", "url": "https://translate-dev.freebsd.org/api/units/1506933/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.627933Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "sainmsb.png" ], "previous_source": "", "target": [ "" ], "id_hash": -4268670603272954575, "content_hash": -4268670603272954575, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:430, documentation/content/en/books/developers-handbook/sockets/_index.adoc:476", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 102, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060765/?format=api", "priority": 100, "id": 1506934, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=44c2a2b3e4c35d31", "url": "https://translate-dev.freebsd.org/api/units/1506934/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.630894Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "And on a PDP it might look different yet. But the above two are the most common ways in use today." ], "previous_source": "", "target": [ "" ], "id_hash": 1372888676006735985, "content_hash": 1372888676006735985, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:434", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 103, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1188132/?format=api", "priority": 100, "id": 1506935, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=930d7afa1989b071", "url": "https://translate-dev.freebsd.org/api/units/1506935/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.633852Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Ordinarily, wanting to write portable code, programmers pretend that these differences do not exist. And they get away with it (except when they code in assembly language). Alas, you cannot get away with it that easily when coding for sockets." ], "previous_source": "", "target": [ "" ], "id_hash": 1539542094343076808, "content_hash": 1539542094343076808, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:438", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 104, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1188134/?format=api", "priority": 100, "id": 1506936, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=955d8d60c2147bc8", "url": "https://translate-dev.freebsd.org/api/units/1506936/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.636575Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Why?" ], "previous_source": "", "target": [ "" ], "id_hash": 1878306786101745613, "content_hash": 1878306786101745613, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:440", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 105, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060771/?format=api", "priority": 100, "id": 1506937, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=9a111611fcccd7cd", "url": "https://translate-dev.freebsd.org/api/units/1506937/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.639884Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Because when communicating with another computer, you usually do not know whether it stores data _most significant byte_ (MSB) or _least significant byte_ (LSB) first." ], "previous_source": "", "target": [ "" ], "id_hash": 1882715579899108014, "content_hash": 1882715579899108014, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:442", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 106, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1060773/?format=api", "priority": 100, "id": 1506938, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=9a20bfd848fadaae", "url": "https://translate-dev.freebsd.org/api/units/1506938/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.643073Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "You might be wondering, _\"So, will sockets not handle it for me?\"_" ], "previous_source": "", "target": [ "" ], "id_hash": 2965298662989773548, "content_hash": 2965298662989773548, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:444", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 107, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1060775/?format=api", "priority": 100, "id": 1506939, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=a926db6c54723aec", "url": "https://translate-dev.freebsd.org/api/units/1506939/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.645863Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "It will not." ], "previous_source": "", "target": [ "" ], "id_hash": -5080144786799326842, "content_hash": -5080144786799326842, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:446", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 108, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060777/?format=api", "priority": 100, "id": 1506940, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=397fb33b6f460986", "url": "https://translate-dev.freebsd.org/api/units/1506940/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.648850Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "While that answer may surprise you at first, remember that the general sockets interface only understands the `sa_len` and `sa_family` fields of the `sockaddr` structure. You do not have to worry about the byte order there (of course, on FreeBSD `sa_family` is only 1 byte anyway, but many other UNIX(R) systems do not have `sa_len` and use 2 bytes for `sa_family`, and expect the data in whatever order is native to the computer)." ], "previous_source": "", "target": [ "" ], "id_hash": 7731902428246844872, "content_hash": 7731902428246844872, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:449", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 109, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 73, "source_unit": "https://translate-dev.freebsd.org/api/units/1188136/?format=api", "priority": 100, "id": 1506941, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=eb4d3c4b09a225c8", "url": "https://translate-dev.freebsd.org/api/units/1506941/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.652500Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "But the rest of the data is just `sa_data[14]` as far as sockets goes. Depending on the _address family_, sockets just forwards that data to its destination." ], "previous_source": "", "target": [ "" ], "id_hash": -951246576278581333, "content_hash": -951246576278581333, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:452", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 110, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1188138/?format=api", "priority": 100, "id": 1506942, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=72cc7e475f1bcfab", "url": "https://translate-dev.freebsd.org/api/units/1506942/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.655567Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Indeed, when we enter a port number, it is because we want the other computer to know what service we are asking for. And, when we are the server, we read the port number so we know what service the other computer is expecting from us. Either way, sockets only has to forward the port number as data. It does not interpret it in any way." ], "previous_source": "", "target": [ "" ], "id_hash": -6137307750077606312, "content_hash": -6137307750077606312, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:457", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 111, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/1188140/?format=api", "priority": 100, "id": 1506943, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=2ad3e71e3f5f5658", "url": "https://translate-dev.freebsd.org/api/units/1506943/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.658316Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Similarly, we enter the IP address to tell everyone on the way where to send our data to. Sockets, again, only forwards it as data." ], "previous_source": "", "target": [ "" ], "id_hash": 5256751339012275931, "content_hash": 5256751339012275931, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:460", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 112, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1188142/?format=api", "priority": 100, "id": 1506944, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=c8f3bb7dca62bedb", "url": "https://translate-dev.freebsd.org/api/units/1506944/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.661111Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "That is why, we (the _programmers_, not the _sockets_) have to distinguish between the byte order used by our computer and a conventional byte order to send the data in to the other computer." ], "previous_source": "", "target": [ "" ], "id_hash": -2513599986377310062, "content_hash": -2513599986377310062, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:462", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 113, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/1060787/?format=api", "priority": 100, "id": 1506945, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=5d1de621488dc092", "url": "https://translate-dev.freebsd.org/api/units/1506945/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.663927Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "We will call the byte order our computer uses the _host byte order_, or just the _host order_." ], "previous_source": "", "target": [ "" ], "id_hash": -2160174803331305541, "content_hash": -2160174803331305541, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:464", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 114, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1060789/?format=api", "priority": 100, "id": 1506946, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=6205847622b02fbb", "url": "https://translate-dev.freebsd.org/api/units/1506946/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.666864Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "There is a convention of sending the multi-byte data over IP _MSB first_. This, we will refer to as the _network byte order_, or simply the _network order_." ], "previous_source": "", "target": [ "" ], "id_hash": 9059697828718055609, "content_hash": 9059697828718055609, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:467", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 115, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1188144/?format=api", "priority": 100, "id": 1506947, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=fdba832cc51e10b9", "url": "https://translate-dev.freebsd.org/api/units/1506947/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.669637Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Now, if we compiled the above code for an Intel based computer, our _host byte order_ would produce:" ], "previous_source": "", "target": [ "" ], "id_hash": 8894071129098121808, "content_hash": 8894071129098121808, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:469", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 116, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1060793/?format=api", "priority": 100, "id": 1506948, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=fb6e1691b0f37250", "url": "https://translate-dev.freebsd.org/api/units/1506948/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.672306Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Host byte order on an Intel system" ], "previous_source": "", "target": [ "" ], "id_hash": -1711629057438241646, "content_hash": -1711629057438241646, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:470", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 117, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1060795/?format=api", "priority": 100, "id": 1506949, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=683f1270dc282c92", "url": "https://translate-dev.freebsd.org/api/units/1506949/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.674888Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "But the _network byte order_ requires that we store the data MSB first:" ], "previous_source": "", "target": [ "" ], "id_hash": -3634697697318309008, "content_hash": -3634697697318309008, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:474", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 118, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1060797/?format=api", "priority": 100, "id": 1506950, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=4d8ef5b3a5697370", "url": "https://translate-dev.freebsd.org/api/units/1506950/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.677706Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Network byte order" ], "previous_source": "", "target": [ "" ], "id_hash": 3144162693830665822, "content_hash": 3144162693830665822, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:475", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 119, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060799/?format=api", "priority": 100, "id": 1506951, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=aba24f4fc1cfe65e", "url": "https://translate-dev.freebsd.org/api/units/1506951/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.680215Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Unfortunately, our _host order_ is the exact opposite of the _network order_." ], "previous_source": "", "target": [ "" ], "id_hash": -758180507356836171, "content_hash": -758180507356836171, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:479", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 120, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1060801/?format=api", "priority": 100, "id": 1506952, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=757a66d8775eceb5", "url": "https://translate-dev.freebsd.org/api/units/1506952/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.683162Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "We have several ways of dealing with it. One would be to _reverse_ the values in our code:" ], "previous_source": "", "target": [ "" ], "id_hash": 5128770987338748900, "content_hash": 5128770987338748900, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:482", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 121, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1188146/?format=api", "priority": 100, "id": 1506953, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=c72d0e0a22a7d3e4", "url": "https://translate-dev.freebsd.org/api/units/1506953/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.685822Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "sa.sin_family = AF_INET;\nsa.sin_port = 13 << 8;\nsa.sin_addr.s_addr = (((((18 << 8) | 244) << 8) | 43) << 8) | 192;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 654169707116727256, "content_hash": 654169707116727256, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:488", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 122, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/1060805/?format=api", "priority": 100, "id": 1506954, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=891413e1f7838bd8", "url": "https://translate-dev.freebsd.org/api/units/1506954/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.719213Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "This will _trick_ our compiler into storing the data in the _network byte order_. In some cases, this is exactly the way to do it (e.g., when programming in assembly language). In most cases, however, it can cause a problem." ], "previous_source": "", "target": [ "" ], "id_hash": 1984981822238373929, "content_hash": 1984981822238373929, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:493", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 123, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1188148/?format=api", "priority": 100, "id": 1506955, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=9b8c127350203829", "url": "https://translate-dev.freebsd.org/api/units/1506955/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.722705Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Suppose, you wrote a sockets-based program in C. You know it is going to run on a Pentium(R), so you enter all your constants in reverse and force them to the _network byte order_. It works well." ], "previous_source": "", "target": [ "" ], "id_hash": -7741274145409941500, "content_hash": -7741274145409941500, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:497", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 124, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/1188150/?format=api", "priority": 100, "id": 1506956, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=1491782e05ecc004", "url": "https://translate-dev.freebsd.org/api/units/1506956/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.726679Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Then, some day, your trusted old Pentium(R) becomes a rusty old Pentium(R). You replace it with a system whose _host order_ is the same as the _network order_. You need to recompile all your software. All of your software continues to perform well, except the one program you wrote." ], "previous_source": "", "target": [ "" ], "id_hash": 9029060411413660894, "content_hash": 9029060411413660894, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:502", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 125, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 49, "source_unit": "https://translate-dev.freebsd.org/api/units/1188152/?format=api", "priority": 100, "id": 1506957, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=fd4daa9b2dda84de", "url": "https://translate-dev.freebsd.org/api/units/1506957/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.730377Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "You have since forgotten that you had forced all of your constants to the opposite of the _host order_. You spend some quality time tearing out your hair, calling the names of all gods you ever heard of (and some you made up), hitting your monitor with a nerf bat, and performing all the other traditional ceremonies of trying to figure out why something that has worked so well is suddenly not working at all." ], "previous_source": "", "target": [ "" ], "id_hash": -4468518014717551197, "content_hash": -4468518014717551197, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:506", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 126, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 75, "source_unit": "https://translate-dev.freebsd.org/api/units/1188154/?format=api", "priority": 100, "id": 1506958, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=41fca28a74539da3", "url": "https://translate-dev.freebsd.org/api/units/1506958/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.734306Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Eventually, you figure it out, say a couple of swear words, and start rewriting your code." ], "previous_source": "", "target": [ "" ], "id_hash": -6690007527966445334, "content_hash": -6690007527966445334, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:508", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 127, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1060815/?format=api", "priority": 100, "id": 1506959, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=2328519936def0ea", "url": "https://translate-dev.freebsd.org/api/units/1506959/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.738114Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Luckily, you are not the first one to face the problem. Someone else has created the man:htons[3] and man:htonl[3] C functions to convert a `short` and `long` respectively from the _host byte order_ to the _network byte order_, and the man:ntohs[3] and man:ntohl[3] C functions to go the other way." ], "previous_source": "", "target": [ "" ], "id_hash": -6722886691248811704, "content_hash": -6722886691248811704, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:511", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 128, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 50, "source_unit": "https://translate-dev.freebsd.org/api/units/1188156/?format=api", "priority": 100, "id": 1506960, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=22b3822c76e9d148", "url": "https://translate-dev.freebsd.org/api/units/1506960/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.741163Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "On _MSB-first_ systems these functions do nothing. On _LSB-first_ systems they convert values to the proper order." ], "previous_source": "", "target": [ "" ], "id_hash": -2326121714046837158, "content_hash": -2326121714046837158, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:514", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 129, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1188158/?format=api", "priority": 100, "id": 1506961, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=5fb7f4a019ea5e5a", "url": "https://translate-dev.freebsd.org/api/units/1506961/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.744798Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "So, regardless of what system your software is compiled on, your data will end up in the correct order if you use these functions." ], "previous_source": "", "target": [ "" ], "id_hash": -2701972389452250669, "content_hash": -2701972389452250669, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:516", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 130, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1060821/?format=api", "priority": 100, "id": 1506962, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=5a80aa6d6dc901d3", "url": "https://translate-dev.freebsd.org/api/units/1506962/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.748753Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Client Functions" ], "previous_source": "", "target": [ "" ], "id_hash": 3704708670692572785, "content_hash": 3704708670692572785, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:518", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 131, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1060823/?format=api", "priority": 100, "id": 1506963, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=b369c4e858f0be71", "url": "https://translate-dev.freebsd.org/api/units/1506963/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.752295Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Typically, the client initiates the connection to the server. The client knows which server it is about to call: It knows its IP address, and it knows the _port_ the server resides at. It is akin to you picking up the phone and dialing the number (the _address_), then, after someone answers, asking for the person in charge of wingdings (the _port_)." ], "previous_source": "", "target": [ "" ], "id_hash": 7957233628301780190, "content_hash": 7957233628301780190, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:523", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 132, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/1188160/?format=api", "priority": 100, "id": 1506964, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=ee6dc5d361b864de", "url": "https://translate-dev.freebsd.org/api/units/1506964/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.755694Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "`connect`" ], "previous_source": "", "target": [ "" ], "id_hash": 323051673300778178, "content_hash": 323051673300778178, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:525", "context": "", "note": "type: Title =====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 133, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060827/?format=api", "priority": 100, "id": 1506965, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=847bb5c907303cc2", "url": "https://translate-dev.freebsd.org/api/units/1506965/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.759206Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Once a client has created a socket, it needs to connect it to a specific port on a remote system. It uses man:connect[2]:" ], "previous_source": "", "target": [ "" ], "id_hash": -5994442711511272923, "content_hash": -5994442711511272923, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:528", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 134, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/1060829/?format=api", "priority": 100, "id": 1506966, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=2ccf761d21f0f225", "url": "https://translate-dev.freebsd.org/api/units/1506966/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.762195Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "int connect(int s, const struct sockaddr *name, socklen_t namelen);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2012455567139470058, "content_hash": 2012455567139470058, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:532", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 135, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1060831/?format=api", "priority": 100, "id": 1506967, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=9bedadad059afaea", "url": "https://translate-dev.freebsd.org/api/units/1506967/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.765498Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "The `s` argument is the socket, i.e., the value returned by the `socket` function. The `name` is a pointer to `sockaddr`, the structure we have talked about extensively. Finally, `namelen` informs the system how many bytes are in our `sockaddr` structure." ], "previous_source": "", "target": [ "" ], "id_hash": -1808222706811875151, "content_hash": -1808222706811875151, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:537", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 136, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/1188162/?format=api", "priority": 100, "id": 1506968, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=66e7e7074daed0b1", "url": "https://translate-dev.freebsd.org/api/units/1506968/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.768869Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "If `connect` is successful, it returns `0`. Otherwise it returns `-1` and stores the error code in `errno`." ], "previous_source": "", "target": [ "" ], "id_hash": 505183515603262002, "content_hash": 505183515603262002, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:540", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 137, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1188164/?format=api", "priority": 100, "id": 1506969, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8702c5bb19ea5a32", "url": "https://translate-dev.freebsd.org/api/units/1506969/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.772205Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "There are many reasons why `connect` may fail. For example, with an attempt to an Internet connection, the IP address may not exist, or it may be down, or just too busy, or it may not have a server listening at the specified port. Or it may outright _refuse_ any request for specific code." ], "previous_source": "", "target": [ "" ], "id_hash": -5624350319812727005, "content_hash": -5624350319812727005, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:544", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 138, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 54, "source_unit": "https://translate-dev.freebsd.org/api/units/1188166/?format=api", "priority": 100, "id": 1506970, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=31f24b2ee7352f23", "url": "https://translate-dev.freebsd.org/api/units/1506970/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.775451Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Our First Client" ], "previous_source": "", "target": [ "" ], "id_hash": 6300450392283367781, "content_hash": 6300450392283367781, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:546", "context": "", "note": "type: Title =====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 139, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060839/?format=api", "priority": 100, "id": 1506971, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=d76fb24025054965", "url": "https://translate-dev.freebsd.org/api/units/1506971/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.779029Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "We now know enough to write a very simple client, one that will get current time from `192.43.244.18` and print it to [.filename]#stdout#." ], "previous_source": "", "target": [ "" ], "id_hash": 8111931650623194884, "content_hash": 8111931650623194884, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:549", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 140, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/1060841/?format=api", "priority": 100, "id": 1506972, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=f0935edb7da4c704", "url": "https://translate-dev.freebsd.org/api/units/1506972/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.782502Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " if ((s = socket(PF_INET, SOCK_STREAM, 0)) < 0) {\n perror(\"socket\");\n return 1;\n }\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2165316294999839788, "content_hash": -2165316294999839788, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:573, documentation/content/en/books/developers-handbook/sockets/_index.adoc:992", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 143, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1060847/?format=api", "priority": 100, "id": 1506975, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=61f3404d522b6bd4", "url": "https://translate-dev.freebsd.org/api/units/1506975/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.816547Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " sa.sin_family = AF_INET;\n sa.sin_port = htons(13);\n sa.sin_addr.s_addr = htonl((((((192 << 8) | 43) << 8) | 244) << 8) | 18);\n if (connect(s, (struct sockaddr *)&sa, sizeof sa) < 0) {\n perror(\"connect\");\n close(s);\n return 2;\n }\n" ], "previous_source": "", "target": [ "" ], "id_hash": -9182121191175768226, "content_hash": -9182121191175768226, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:584", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 145, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1060851/?format=api", "priority": 100, "id": 1506977, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=00928d6cf361b75e", "url": "https://translate-dev.freebsd.org/api/units/1506977/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.823351Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " while ((bytes = read(s, buffer, BUFSIZ)) > 0)\n write(1, buffer, bytes);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1865810768885447833, "content_hash": 1865810768885447833, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:587", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 146, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1060853/?format=api", "priority": 100, "id": 1506978, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=99e4b1024183fc99", "url": "https://translate-dev.freebsd.org/api/units/1506978/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.826877Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " close(s);\n return 0;\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4682214489238934424, "content_hash": 4682214489238934424, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:591, documentation/content/en/books/developers-handbook/sockets/_index.adoc:1018", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 147, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1060855/?format=api", "priority": 100, "id": 1506979, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=c0fa914541461398", "url": "https://translate-dev.freebsd.org/api/units/1506979/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.830570Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Go ahead, enter it in your editor, save it as [.filename]#daytime.c#, then compile and run it:" ], "previous_source": "", "target": [ "" ], "id_hash": 2394826500420142019, "content_hash": 2394826500420142019, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:594", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 148, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1060857/?format=api", "priority": 100, "id": 1506980, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=a13c2203883c03c3", "url": "https://translate-dev.freebsd.org/api/units/1506980/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.834076Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "% cc -O3 -o daytime daytime.c\n% ./daytime\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5112043006193155496, "content_hash": -5112043006193155496, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:599", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 149, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1060859/?format=api", "priority": 100, "id": 1506981, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=390e5ff87b564258", "url": "https://translate-dev.freebsd.org/api/units/1506981/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.837430Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "52079 01-06-19 02:29:25 50 0 1 543.9 UTC(NIST) *\n%\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7459008877865445527, "content_hash": -7459008877865445527, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:602", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 150, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1060861/?format=api", "priority": 100, "id": 1506982, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=187c46f1f2585769", "url": "https://translate-dev.freebsd.org/api/units/1506982/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.841267Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "In this case, the date was June 19, 2001, the time was 02:29:25 UTC. Naturally, your results will vary." ], "previous_source": "", "target": [ "" ], "id_hash": -5016632912767757026, "content_hash": -5016632912767757026, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:606", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 151, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1188168/?format=api", "priority": 100, "id": 1506983, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=3a6156f1f1f1d51e", "url": "https://translate-dev.freebsd.org/api/units/1506983/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.844743Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Server Functions" ], "previous_source": "", "target": [ "" ], "id_hash": -7821823428713838229, "content_hash": -7821823428713838229, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:608", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 152, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1060865/?format=api", "priority": 100, "id": 1506984, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=13734d088baf096b", "url": "https://translate-dev.freebsd.org/api/units/1506984/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.847980Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "The typical server does not initiate the connection. Instead, it waits for a client to call it and request services. It does not know when the client will call, nor how many clients will call. It may be just sitting there, waiting patiently, one moment, The next moment, it can find itself swamped with requests from a number of clients, all calling in at the same time." ], "previous_source": "", "target": [ "" ], "id_hash": 1103928558615587008, "content_hash": 1103928558615587008, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:614", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 153, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 67, "source_unit": "https://translate-dev.freebsd.org/api/units/1188170/?format=api", "priority": 100, "id": 1506985, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8f51f12cd9b0e8c0", "url": "https://translate-dev.freebsd.org/api/units/1506985/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:55.851058Z" } ] }{ "count": 272, "next": "