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=5
https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/units/?format=api&page=6", "previous": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/units/?format=api&page=4", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Meanwhile, the child process continues working in the background. It calls `listen` and sets its backlog to `4`. It does not need a large value here because _daytime_ is not a protocol many clients request all the time, and because it can process each request instantly anyway." ], "previous_source": "", "target": [ "" ], "id_hash": 4975221893500147439, "content_hash": 4975221893500147439, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:818", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 202, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 47, "source_unit": "https://translate-dev.freebsd.org/api/units/1188198/?format=api", "priority": 100, "id": 1507034, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=c50b89f3c8d296ef", "url": "https://translate-dev.freebsd.org/api/units/1507034/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.061371Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Finally, the daemon starts an endless loop, which performs the following steps:" ], "previous_source": "", "target": [ "" ], "id_hash": 2140480309971989215, "content_hash": 2140480309971989215, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:820", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 203, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1060967/?format=api", "priority": 100, "id": 1507035, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=9db483804c9932df", "url": "https://translate-dev.freebsd.org/api/units/1507035/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.064967Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Call `accept`. It waits here until a client contacts it. At that point, it receives a new socket, `c`, which it can use to communicate with this particular client." ], "previous_source": "", "target": [ "" ], "id_hash": 6876026995722314057, "content_hash": 6876026995722314057, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:823", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 204, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/1060969/?format=api", "priority": 100, "id": 1507036, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=df6c8e1f32066149", "url": "https://translate-dev.freebsd.org/api/units/1507036/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.068475Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "It uses the C function `fdopen` to turn the socket from a low-level _file descriptor_ to a C-style `FILE` pointer. This will allow the use of `fprintf` later on." ], "previous_source": "", "target": [ "" ], "id_hash": 3389425371812858932, "content_hash": 3389425371812858932, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:824", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 205, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/1060971/?format=api", "priority": 100, "id": 1507037, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=af09a86aef9a0c34", "url": "https://translate-dev.freebsd.org/api/units/1507037/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.071718Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "It checks the time, and prints it in the _ISO 8601_ format to the `client` \"file\". It then uses `fclose` to close the file. That will automatically close the socket as well." ], "previous_source": "", "target": [ "" ], "id_hash": -943501320417020507, "content_hash": -943501320417020507, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:825", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 206, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/1060973/?format=api", "priority": 100, "id": 1507038, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=72e8028c476e75a5", "url": "https://translate-dev.freebsd.org/api/units/1507038/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.075268Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "We can _generalize_ this, and use it as a model for many other servers:" ], "previous_source": "", "target": [ "" ], "id_hash": 4839167020780756783, "content_hash": 4839167020780756783, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:827", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 207, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1060975/?format=api", "priority": 100, "id": 1507039, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=c3282cc4326c1f2f", "url": "https://translate-dev.freebsd.org/api/units/1507039/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.078519Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Sequential Server" ], "previous_source": "", "target": [ "" ], "id_hash": 15962647401203449, "content_hash": 15962647401203449, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:828", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 208, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1060977/?format=api", "priority": 100, "id": 1507040, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8038b5f1780606f9", "url": "https://translate-dev.freebsd.org/api/units/1507040/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.081442Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "serv.png" ], "previous_source": "", "target": [ "" ], "id_hash": -7458900548250673376, "content_hash": -7458900548250673376, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:829", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 209, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1060979/?format=api", "priority": 100, "id": 1507041, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=187ca978668d5f20", "url": "https://translate-dev.freebsd.org/api/units/1507041/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.084059Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "This flowchart is good for _sequential servers_, i.e., servers that can serve one client at a time, just as we were able to with our _daytime_ server. This is only possible whenever there is no real \"conversation\" going on between the client and the server: As soon as the server detects a connection to the client, it sends out some data and closes the connection. The entire operation may take nanoseconds, and it is finished." ], "previous_source": "", "target": [ "" ], "id_hash": -7423216966594651509, "content_hash": -7423216966594651509, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:835", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 210, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 75, "source_unit": "https://translate-dev.freebsd.org/api/units/1188200/?format=api", "priority": 100, "id": 1507042, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=18fb6f7faf791a8b", "url": "https://translate-dev.freebsd.org/api/units/1507042/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.086985Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "The advantage of this flowchart is that, except for the brief moment after the parent ``fork``s and before it exits, there is always only one _process_ active: Our server does not take up much memory and other system resources." ], "previous_source": "", "target": [ "" ], "id_hash": -4442605385822736675, "content_hash": -4442605385822736675, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:838", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 211, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/1060983/?format=api", "priority": 100, "id": 1507043, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=4258b1f084cc6edd", "url": "https://translate-dev.freebsd.org/api/units/1507043/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.089667Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Note that we have added _initialize daemon_ in our flowchart. We did not need to initialize our own daemon, but this is a good place in the flow of the program to set up any `signal` handlers, open any files we may need, etc." ], "previous_source": "", "target": [ "" ], "id_hash": -8143141055767178893, "content_hash": -8143141055767178893, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:842", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 212, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1188202/?format=api", "priority": 100, "id": 1507044, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=0efdc05a9f191173", "url": "https://translate-dev.freebsd.org/api/units/1507044/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.118481Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Just about everything in the flow chart can be used literally on many different servers. The _serve_ entry is the exception. We think of it as a _\"black box\"_, i.e., something you design specifically for your own server, and just \"plug it into the rest.\"" ], "previous_source": "", "target": [ "" ], "id_hash": 8230656755054053167, "content_hash": 8230656755054053167, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:846", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 213, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://translate-dev.freebsd.org/api/units/1188204/?format=api", "priority": 100, "id": 1507045, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=f2392ab5f92a872f", "url": "https://translate-dev.freebsd.org/api/units/1507045/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.122577Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Not all protocols are that simple. Many receive a request from the client, reply to it, then receive another request from the same client. As a result, they do not know in advance how long they will be serving the client. Such servers usually start a new process for each client. While the new process is serving its client, the daemon can continue listening for more connections." ], "previous_source": "", "target": [ "" ], "id_hash": 389247071798560789, "content_hash": 389247071798560789, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:852", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 214, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 67, "source_unit": "https://translate-dev.freebsd.org/api/units/1188206/?format=api", "priority": 100, "id": 1507046, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8566e226446a0815", "url": "https://translate-dev.freebsd.org/api/units/1507046/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.128010Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Now, go ahead, save the above source code as [.filename]#daytimed.c# (it is customary to end the names of daemons with the letter `d`). After you have compiled it, try running it:" ], "previous_source": "", "target": [ "" ], "id_hash": 3399062956291550058, "content_hash": 3399062956291550058, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:855", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 215, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/1188208/?format=api", "priority": 100, "id": 1507047, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=af2be5bfeef26b6a", "url": "https://translate-dev.freebsd.org/api/units/1507047/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.131952Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "% ./daytimed\nbind: Permission denied\n%\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6133009290703711126, "content_hash": -6133009290703711126, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:861", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 216, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1060993/?format=api", "priority": 100, "id": 1507048, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=2ae32c8b4f6f546a", "url": "https://translate-dev.freebsd.org/api/units/1507048/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.136023Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "What happened here? As you will recall, the _daytime_ protocol uses port 13. But all ports below 1024 are reserved to the superuser (otherwise, anyone could start a daemon pretending to serve a commonly used port, while causing a security breach)." ], "previous_source": "", "target": [ "" ], "id_hash": -2691829102315568370, "content_hash": -2691829102315568370, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:865", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 217, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/1188210/?format=api", "priority": 100, "id": 1507049, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=5aa4b3b1806c030e", "url": "https://translate-dev.freebsd.org/api/units/1507049/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.139861Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Try again, this time as the superuser:" ], "previous_source": "", "target": [ "" ], "id_hash": 5657633414719711642, "content_hash": 5657633414719711642, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:867", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 218, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1060997/?format=api", "priority": 100, "id": 1507050, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=ce83f39d81bfa99a", "url": "https://translate-dev.freebsd.org/api/units/1507050/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.142961Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "# ./daytimed\n#\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1951081224354268456, "content_hash": -1951081224354268456, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:872", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 219, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1060999/?format=api", "priority": 100, "id": 1507051, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=64ec5df6b66dfad8", "url": "https://translate-dev.freebsd.org/api/units/1507051/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.145792Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "What... Nothing? Let us try again:" ], "previous_source": "", "target": [ "" ], "id_hash": -5710757875477790364, "content_hash": -5710757875477790364, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:875", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 220, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1061001/?format=api", "priority": 100, "id": 1507052, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=30bf4ff819e1c164", "url": "https://translate-dev.freebsd.org/api/units/1507052/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.148667Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "# ./daytimed\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5673060181902645685, "content_hash": 5673060181902645685, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:879", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 221, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1061003/?format=api", "priority": 100, "id": 1507053, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=cebac22da3b859b5", "url": "https://translate-dev.freebsd.org/api/units/1507053/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.151962Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "bind: Address already in use\n#\n" ], "previous_source": "", "target": [ "" ], "id_hash": 798574455855498375, "content_hash": 798574455855498375, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:882", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 222, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1061005/?format=api", "priority": 100, "id": 1507054, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8b151b3c8ff7c487", "url": "https://translate-dev.freebsd.org/api/units/1507054/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.155036Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Every port can only be bound by one program at a time. Our first attempt was indeed successful: It started the child daemon and returned quietly. It is still running and will continue to run until you either kill it, or any of its system calls fail, or you reboot the system." ], "previous_source": "", "target": [ "" ], "id_hash": 6363660968055073130, "content_hash": 6363660968055073130, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:887", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 223, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 52, "source_unit": "https://translate-dev.freebsd.org/api/units/1188212/?format=api", "priority": 100, "id": 1507055, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=d85043ef2ff0e96a", "url": "https://translate-dev.freebsd.org/api/units/1507055/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.157728Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Fine, we know it is running in the background. But is it working? How do we know it is a proper _daytime_ server? Simple:" ], "previous_source": "", "target": [ "" ], "id_hash": -432326447097048676, "content_hash": -432326447097048676, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:890", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 224, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1188214/?format=api", "priority": 100, "id": 1507056, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=7a0011630dc6119c", "url": "https://translate-dev.freebsd.org/api/units/1507056/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.162064Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "% telnet localhost 13\n" ], "previous_source": "", "target": [ "" ], "id_hash": 603860459651382271, "content_hash": 603860459651382271, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:894", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 225, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1061011/?format=api", "priority": 100, "id": 1507057, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=886157e37f6cbbff", "url": "https://translate-dev.freebsd.org/api/units/1507057/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.164930Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Trying ::1...\ntelnet: connect to address ::1: Connection refused\nTrying 127.0.0.1...\nConnected to localhost.\nEscape character is '^]'.\n2001-06-19T21:04:42Z\nConnection closed by foreign host.\n%\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8583050860526563841, "content_hash": -8583050860526563841, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:903", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 226, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1061013/?format=api", "priority": 100, "id": 1507058, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=08e2e0b7a1340dff", "url": "https://translate-dev.freebsd.org/api/units/1507058/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.167377Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "telnet tried the new IPv6, and failed. It retried with IPv4 and succeeded. The daemon works." ], "previous_source": "", "target": [ "" ], "id_hash": -4155358618449497286, "content_hash": -4155358618449497286, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:908", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 227, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1188216/?format=api", "priority": 100, "id": 1507059, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=4655335a40f5b33a", "url": "https://translate-dev.freebsd.org/api/units/1507059/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.170053Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "If you have access to another UNIX(R) system via telnet, you can use it to test accessing the server remotely. My computer does not have a static IP address, so this is what I did:" ], "previous_source": "", "target": [ "" ], "id_hash": -7622401308117258446, "content_hash": -7622401308117258446, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:911", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 228, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://translate-dev.freebsd.org/api/units/1188218/?format=api", "priority": 100, "id": 1507060, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=1637ca653e32af32", "url": "https://translate-dev.freebsd.org/api/units/1507060/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.172894Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "% who\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1652574456438852674, "content_hash": -1652574456438852674, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:915", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 229, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1061019/?format=api", "priority": 100, "id": 1507061, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=6910e0499f13f3be", "url": "https://translate-dev.freebsd.org/api/units/1507061/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.175781Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "whizkid ttyp0 Jun 19 16:59 (216.127.220.143)\nxxx ttyp1 Jun 19 16:06 (xx.xx.xx.xx)\n% telnet 216.127.220.143 13\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2913502153190205876, "content_hash": 2913502153190205876, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:919", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 230, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1061021/?format=api", "priority": 100, "id": 1507062, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=a86ed6c59d3ce9b4", "url": "https://translate-dev.freebsd.org/api/units/1507062/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.178807Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Trying 216.127.220.143...\nConnected to r47.bfm.org.\nEscape character is '^]'.\n2001-06-19T21:31:11Z\nConnection closed by foreign host.\n%\n" ], "previous_source": "", "target": [ "" ], "id_hash": 832595847251853851, "content_hash": 832595847251853851, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:926", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 231, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1061023/?format=api", "priority": 100, "id": 1507063, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=8b8df98304e9821b", "url": "https://translate-dev.freebsd.org/api/units/1507063/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.181177Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Again, it worked. Will it work using the domain name?" ], "previous_source": "", "target": [ "" ], "id_hash": -4201702628600611081, "content_hash": -4201702628600611081, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:929", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 232, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1061025/?format=api", "priority": 100, "id": 1507064, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=45b08db88a6f7ef7", "url": "https://translate-dev.freebsd.org/api/units/1507064/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.183993Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "% telnet r47.bfm.org 13\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6427261068957188727, "content_hash": -6427261068957188727, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:933", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 233, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1061027/?format=api", "priority": 100, "id": 1507065, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=26cdc81c621bfd89", "url": "https://translate-dev.freebsd.org/api/units/1507065/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.186493Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Trying 216.127.220.143...\nConnected to r47.bfm.org.\nEscape character is '^]'.\n2001-06-19T21:31:40Z\nConnection closed by foreign host.\n%\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1071177604734864220, "content_hash": -1071177604734864220, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:940", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 234, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1061029/?format=api", "priority": 100, "id": 1507066, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=712269a4d26cb4a4", "url": "https://translate-dev.freebsd.org/api/units/1507066/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.188817Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "By the way, telnet prints the _Connection closed by foreign host_ message after our daemon has closed the socket. This shows us that, indeed, using `fclose(client);` in our code works as advertised." ], "previous_source": "", "target": [ "" ], "id_hash": -8605626549778967735, "content_hash": -8605626549778967735, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:944", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 235, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/1188220/?format=api", "priority": 100, "id": 1507067, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=0892ac3f5ec11349", "url": "https://translate-dev.freebsd.org/api/units/1507067/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.190969Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Helper Functions" ], "previous_source": "", "target": [ "" ], "id_hash": 1310553918848149197, "content_hash": 1310553918848149197, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:946", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 236, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1061033/?format=api", "priority": 100, "id": 1507068, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=923005d877f0a6cd", "url": "https://translate-dev.freebsd.org/api/units/1507068/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.216428Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "FreeBSD C library contains many helper functions for sockets programming. For example, in our sample client we hard coded the `time.nist.gov` IP address. But we do not always know the IP address. Even if we do, our software is more flexible if it allows the user to enter the IP address, or even the domain name." ], "previous_source": "", "target": [ "" ], "id_hash": -6513202322541265307, "content_hash": -6513202322541265307, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:952", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 237, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 56, "source_unit": "https://translate-dev.freebsd.org/api/units/1188222/?format=api", "priority": 100, "id": 1507069, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=259c74fefeadbe65", "url": "https://translate-dev.freebsd.org/api/units/1507069/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.220397Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "`gethostbyname`" ], "previous_source": "", "target": [ "" ], "id_hash": 3268323789580399693, "content_hash": 3268323789580399693, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:954", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 238, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1061037/?format=api", "priority": 100, "id": 1507070, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=ad5b6b2b98e5f44d", "url": "https://translate-dev.freebsd.org/api/units/1507070/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.224208Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "While there is no way to pass the domain name directly to any of the sockets functions, the FreeBSD C library comes with the man:gethostbyname[3] and man:gethostbyname2[3] functions, declared in [.filename]#netdb.h#." ], "previous_source": "", "target": [ "" ], "id_hash": -4480497283851860564, "content_hash": -4480497283851860564, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:957", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 239, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/1061039/?format=api", "priority": 100, "id": 1507071, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=41d2137582e845ac", "url": "https://translate-dev.freebsd.org/api/units/1507071/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.227650Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "struct hostent * gethostbyname(const char *name);\nstruct hostent * gethostbyname2(const char *name, int af);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -600409152887910771, "content_hash": -600409152887910771, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:962", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 240, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1061041/?format=api", "priority": 100, "id": 1507072, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=77aaeb0e7a390e8d", "url": "https://translate-dev.freebsd.org/api/units/1507072/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.231577Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "Both return a pointer to the `hostent` structure, with much information about the domain. For our purposes, the `h_addr_list[0]` field of the structure points at `h_length` bytes of the correct address, already stored in the _network byte order_." ], "previous_source": "", "target": [ "" ], "id_hash": 3177267202491816285, "content_hash": 3177267202491816285, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:966", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 241, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/1188224/?format=api", "priority": 100, "id": 1507073, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=ac17ebafd106195d", "url": "https://translate-dev.freebsd.org/api/units/1507073/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.234814Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "This allows us to create a much more flexible-and much more useful-version of our daytime program:" ], "previous_source": "", "target": [ "" ], "id_hash": -8027676031269890880, "content_hash": -8027676031269890880, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:968", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 242, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1061045/?format=api", "priority": 100, "id": 1507074, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=1097f72e983d94c0", "url": "https://translate-dev.freebsd.org/api/units/1507074/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.237970Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "/*\n * daytime.c\n *\n * Programmed by G. Adam Stanislav\n * 19 June 2001\n */\n#include <stdio.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <netdb.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5972448886261935827, "content_hash": 5972448886261935827, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:983", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 243, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1061047/?format=api", "priority": 100, "id": 1507075, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=d2e2669e60d1eed3", "url": "https://translate-dev.freebsd.org/api/units/1507075/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.240987Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "int main(int argc, char *argv[]) {\n register int s;\n register int bytes;\n struct sockaddr_in sa;\n struct hostent *he;\n char buf[BUFSIZ+1];\n char *host;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5392639668098060796, "content_hash": -5392639668098060796, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:991", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 244, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1061049/?format=api", "priority": 100, "id": 1507076, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=35297ecb1555ae04", "url": "https://translate-dev.freebsd.org/api/units/1507076/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.245063Z" }, { "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" ], "previous_source": "", "target": [ "" ], "id_hash": 5822814332665796417, "content_hash": 5822814332665796417, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1001", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 245, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1061051/?format=api", "priority": 100, "id": 1507077, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=d0cecac8f3991741", "url": "https://translate-dev.freebsd.org/api/units/1507077/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.248301Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " host = (argc > 1) ? (char *)argv[1] : \"time.nist.gov\";\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7601280788057193419, "content_hash": 7601280788057193419, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1003", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 246, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1061053/?format=api", "priority": 100, "id": 1507078, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=e97d2c9a7a267bcb", "url": "https://translate-dev.freebsd.org/api/units/1507078/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.251571Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " if ((he = gethostbyname(host)) == NULL) {\n herror(host);\n return 2;\n }\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8490165531573056112, "content_hash": -8490165531573056112, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1008", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 247, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1061055/?format=api", "priority": 100, "id": 1507079, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=0a2cdf6e8e528d90", "url": "https://translate-dev.freebsd.org/api/units/1507079/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.254977Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " bcopy(he->h_addr_list[0],&sa.sin_addr, he->h_length);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -178345511512681253, "content_hash": -178345511512681253, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1010", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 248, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1061057/?format=api", "priority": 100, "id": 1507080, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=7d8663b3c30054db", "url": "https://translate-dev.freebsd.org/api/units/1507080/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.257887Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " if (connect(s, (struct sockaddr *)&sa, sizeof sa) < 0) {\n perror(\"connect\");\n return 3;\n }\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8685136176515527724, "content_hash": -8685136176515527724, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1015", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 249, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1061059/?format=api", "priority": 100, "id": 1507081, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=077832a9cce5cbd4", "url": "https://translate-dev.freebsd.org/api/units/1507081/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.260590Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ " while ((bytes = read(s, buf, BUFSIZ)) > 0)\n write(1, buf, bytes);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7634520121754585597, "content_hash": 7634520121754585597, "location": "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": 250, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1061061/?format=api", "priority": 100, "id": 1507082, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=e9f34399efc109fd", "url": "https://translate-dev.freebsd.org/api/units/1507082/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.263751Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbooksockets_index/pl/?format=api", "source": [ "We now can type a domain name (or an IP address, it works both ways) on the command line, and the program will try to connect to its _daytime_ server. Otherwise, it will still default to `time.nist.gov`. However, even in this case we will use `gethostbyname` rather than hard coding `192.43.244.18`. That way, even if its IP address changes in the future, we will still find it." ], "previous_source": "", "target": [ "" ], "id_hash": -1466644619144022724, "content_hash": -1466644619144022724, "location": "documentation/content/en/books/developers-handbook/sockets/_index.adoc:1028", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 251, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 67, "source_unit": "https://translate-dev.freebsd.org/api/units/1188226/?format=api", "priority": 100, "id": 1507083, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksockets_index/pl/?checksum=6ba56e7d502eb53c", "url": "https://translate-dev.freebsd.org/api/units/1507083/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:35:56.266556Z" } ] }{ "count": 273, "next": "