Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Computer network programming
Writing computer programs with networking capability

Computer network programming involves writing computer programs that enable processes to communicate with each other across a computer network.

We don't have any images related to Computer network programming yet.
We don't have any YouTube videos related to Computer network programming yet.
We don't have any PDF documents related to Computer network programming yet.
We don't have any Books related to Computer network programming yet.
We don't have any archived web articles related to Computer network programming yet.

Connection-oriented and connectionless communications

Very generally, most of communications can be divided into connection-oriented, and connectionless. Whether a communication is connection-oriented or connectionless, is defined by the communication protocol, and not by application programming interface (API). Examples of the connection-oriented protocols include Transmission Control Protocol (TCP) and Sequenced Packet Exchange (SPX), and examples of connectionless protocols include User Datagram Protocol (UDP), "raw IP", and Internetwork Packet Exchange (IPX).

Clients and servers

Main article: client–server model

For connection-oriented communications, communication parties usually have different roles. One party is usually waiting for incoming connections; this party is usually referred to as "server". Another party is the one which initiates connection; this party is usually referred to as "client".

For connectionless communications, one party ("server") is usually waiting for an incoming packet, and another party ("client") is usually understood as the one which sends an unsolicited packet to "server".

Network programming traditionally covers different layers of OSI/ISO model (most of application-level programming belongs to L4 and up). The table below contains some examples of popular protocols belonging to different OSI/ISO layers, and popular APIs for them.

OSI/ISO LayerProtocolAPI
L3 (network)IPRaw socket
L4 (transport)TCP, UDP, SCTPBerkeley Sockets
L5 (session)TLSOpenSSL
L7 (application)HTTPVarious

See also

  • W. Richard Stevens: UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets and XTI, Prentice Hall, 1998, ISBN 0-13-490012-X

References

  1. "Chapter 12 - Network Programming". COMP1406 (PDF). 2017. Archived from the original (PDF) on 2020-03-05. Network Programming involves writing programs that communicate with other programs across a computer network. https://web.archive.org/web/20200305163115/http://people.scs.carleton.ca/~lanthier/teaching/COMP1406/Notes/COMP1406_Ch12_NetworkProgramming.pdf