Change language: Suomi

Front Page > Current Education > Information Technology (TT) > 2023 > Year 3 > Socket-ohjelmointi (TT00BI70)


Structure Type: Study unit
Code: TT00BI70
Curriculum: TT 2023
Level: Bachelor of Engineering
Year of Study: 3 (2025-2026)
Semester: Spring
Credits: 3 cr
Responsible Teacher: Virtanen, Antti
Language of Instruction: Finnish

Learning Outcomes

After the course, the student should understand the basic idea of client-server communication, and she should be able to write basic server/client applications. The student should know the differences of connection-less and connection-oriented communication (i.e., UDP and TCP) for designing performance-oriented Internet communication applications. She should know the different types of sockets and which should be applied for their specific application. The student should know the relationship between sockets and application layer protocols. The student should also know what is a WebSocket and how to make WebSocket applications for both server and client sides.

Student's Workload

80 h, which contains 30 h of scheduled contact studies.

Prerequisites / Recommended Optional Courses

Local Area Networks, Basics of Telecommunications, C programming, TCP/IP networks


The course consists of 4 parts.
First, we will go through basic socket functions for both connectionless and connection-oriented communications, using WinSock library and Visual Studio. We will study how to create a socket and how to deal with remote and local socket addresses. We will also study the differences of UDP and TCP communication.
Second, we will learn how to migrate/port WinSock applications to Linux platform, which uses BSD socket. The differences between WinSock and BSD socket will be discussed.
In the third part, we will study other types of sockets, such as raw socket used in lower layers of TCP/IP protocol stack, and in what applications we need to use them.
In the last part, we will study WebSocket and discuss how to implement it.

Recommended or Required Reading and Other Learning Resources/Tools

Lewis Van Winkle, Hands-On Network Programming with C, ASIN:‎ B07PSJKHKJ, Publisher: Packt Publishing; 1st edition (May 13, 2019)
Materials prepared by the teacher.

Mode of Delivery / Planned Learning Activities and Teaching Methods

Lectures, assignments and project work

Assessment Criteria

Grade 5: The student is able to develop performance-oriented TCP/IP applications combining different languages and platforms. He can handle synchronous (concurrent) server development by using different IPC methods. He is proficient in network data formatting. He is able to evaluate the performance of the applications using different network tools/utilities.
Grade 3: The student is able to develop different types of TCP/IP applications such as TCP server / client, UDP server client, and RAW socket applications. He understands the data structure in protocol data unit (PDU).
Grade 1: The student understands basics of TCP/IP socket and can development simple socket applications.

Assessment Methods

An examination, a project, homework exercises.

Further Information

PC rooms with some registered ports unblocked by firewall.