What do network programmers do
Network programming with sockets
Sockets encapsulate the details of network communication. The programmer can thus concentrate on the implementation of the application. Ideally, the applications function independently of the programming language, operating system and network interface.
The Socket API is supported by all common operating systems. Sockets are based on the protocols of a transport layer such as TCP or UDP. From the point of view of the application, a socket is access to the network. In the following we will discuss the programming using the example of the programming language C. The use in other programming languages is similar. At the end of this chapter we show an implementation in the Perl language.
The Socket API provides two methods: connection-oriented and connectionless communication. In the first case, the two computers involved must first establish a connection before they can exchange data. In both cases, however, one of the two computers - the server - takes on the task of first setting up the network resource. Then it waits for connection requests from the other computer - the client. A server can generally serve several clients. Sockets are not only suitable for communication between computers. You can also handle communication between several applications on one computer.
You can also find this article in our compendium “tecCHANNEL-Compact Network Know-How”, which you can get free of charge order in our online shop can. You can obtain the source code of the following examples for direct transfer into your programming environment if you select the link "Text view" under the listings. You can find the complete source code of the Compact here to download.
- How does eBay track conversion rates
- How do we viralize my YouTube video
- Why do nerds believe in fiction so much?
- Road markings can be yellow
- What is the striker in the Premier League
- Where does the name React come from
- Is the Redmi Note 5 Pro overrated
- How does a society define evil
- How to clear the chakra blockage in the throat
- How are DVD files encoded
- It's good to vlog
- What does the dark age really mean
- Which engineering school does Prabhat Shukla come from
- What is a good resume made of?
- Which motorcycle forum is the best in India
- In which Indian city is the traffic high?
- Must Australians worry about terrorism?
- How not to be healthy
- Dogs ever meow like cats
- Which professional music events should I attend?
- What is the injection speed
- Are there anti-matter weapons?
- There is an advantage in partying hard
- What is your idea of sweet
- What are your favorite dance fitness songs
- What would the 64th century look like?
- Was sacked Mourinho at Real Madrid
- How is the genetic code transmitted
- Will ISIS succeed in reaching India?
- Can absorb water X-rays
- If water evaporates a chemical change
- What if everyone were a communist
- Who is more worthless Ino or Sakura
- What is regular crowdfunding