tanszek:oktatas:iss_t:integration_based_on_tcp_ip_sockets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:iss_t:integration_based_on_tcp_ip_sockets [2023/05/08 18:53] – [Exercises] knehez | tanszek:oktatas:iss_t:integration_based_on_tcp_ip_sockets [2024/02/25 15:43] (current) – [Blocking and non-blocking TCP sockets in Java] knehez | ||
---|---|---|---|
Line 27: | Line 27: | ||
{{: | {{: | ||
- | Reading: | + | Blocking and non-blocking TCP sockets differ mainly in handling input/ |
+ | |||
+ | === Blocking sockets === | ||
+ | |||
+ | **Execution Flow**: In the case of blocking sockets, when a socket operation (like recv or send) is called, the program' | ||
+ | |||
+ | **Ease of Use**: Blocking sockets are straightforward to use and understand because the operations appear sequential and synchronous. The program will not proceed until the current operation finishes, simplifying the logic, especially for simple networked applications. | ||
+ | |||
+ | **Performance Considerations**: | ||
+ | |||
+ | === Non-Blocking sockets === | ||
+ | |||
+ | **Execution Flow**: Non-blocking sockets, on the other hand, allow the program' | ||
+ | |||
+ | **Complexity**: | ||
+ | |||
+ | **Performance and Scalability**: | ||
+ | |||
+ | Reading | ||
* http:// | * http:// | ||
Line 41: | Line 59: | ||
| | ||
- | | + | |
| | ||
Line 53: | Line 71: | ||
- | ===== Java examples ===== | ||
- | |||
- | [[Java example for Blocking and Non-Blocking Socket]] | ||
- | |||
- | [[HTTP server]] | ||
tanszek/oktatas/iss_t/integration_based_on_tcp_ip_sockets.1683572022.txt.gz · Last modified: 2023/05/08 18:53 by knehez