Startpunkten

This commit is contained in:
2026-03-05 13:35:06 +01:00
commit fd04d44e12
7 changed files with 595 additions and 0 deletions

63
header.h Normal file
View File

@@ -0,0 +1,63 @@
/* ***************************************** */
/* Laboration 2 i Datakommunikation 2 */
/* RPC-lib */
/* ***************************************** */
/* header.h */
/* Innehåller deklarationer och konstanter */
/* ***************************************** */
/* Christian Ohlsson, di7chro@cse.kau.se */
/* Stefan Sonesson, di7stes@cse.kau.se */
/* ***************************************** */
#ifndef __HEADER_H__
#define __HEADER_H__
/* Kommandon som kan skickas */
#define OP 0
#define OPP 1
#define OPN 2
#define RD 3
#define RDP 4
#define RDN 5
#define WR 6
#define WRP 7
#define WRN 8
#define DEL 9
#define DLP 10
#define DLN 11
#define CL 12
#define CLP 13
#define CLN 14
/* Konstanter */
#define BUFSIZE 50/* Buffertstorlek vid inmatning */