Introduction to Socket Programming

¡Supera tus tareas y exámenes ahora con Quizwiz!

Sockets programming element

Answer 1 : Host ( interface) Answer 2 : Protocol Answer 3 : Port

Describe Port

Client or server process endpoint

Explain operation Read

Get data and place in application memory

3 standard POSIX file descriptor

0- Standard Input (stdin) 1- Standard Output (stdout) 2- Standard Error (stderr)

What is a socket?

Answer 1 : An interface between applications and network which is used for communication between processes. Answer 2 : An abstraction for network communications, just as a file, is an abstraction for file system communication. Answer 3 : one end-point of a two-way communication link between two programs running on the network. Answer 4 : are low level endpoint used for processing information across the network.

Primary Socket Functions

Answer 1 : Open Answer 2 : Close Answer 3 : Read Answer 4 : Write Answer 5 : Control (ioctl)

Describe Host ( interface)

Network address, a reachable network node

Based on layered model of networking, network layer function?

Network layer provides routing over the Internet. This layer is occupied by the Internet Protocol, or IP.

Based on layered model of networking, Physical layer driver?

Physical layer driver, introduce packets onto the physical network.

Explain operation Open

Prepare for input or output operation

Explain operation Write

Put data from applications memory ad send control

Explain operation Control (ioctl)

Set options such as buffer sizes and connection behaviour memory

File descriptor

Simple an integer associated with an open file.

Sockets layer position in the layered model of networking

Sockets layer sits on top of the transport layer

Describe Protocol

Specific protocol such a TCP or UDP

Explain operation Close

Stop previous operations and return resources

Based on layered model of networking, transport layer function?

Transport layer provides the transport protocols


Conjuntos de estudio relacionados

Principles of Economics - Chapter 10

View Set

Поняття про штучний інтелект

View Set

Childhood obesity and metabolic syndrome

View Set

ACG 3343 Smartbook Chapter 17: Additional Topics in Variance Analysis

View Set

PArt 1, Chapter 10 Marketing, Marketing Chapter 10, Marketing Chapter 15, Marketing 3311 Chapter 6, Quiz 4, Chapter 6 Product Development, chapter 6, Chapter 8 Marketing, Chapter 9 Marketing

View Set