The different layers that make up the internet protocol stack are
- Application
- Transport
- Network
- Link
- Physical
The different layers that make up the internet protocol stack are
The most common functions in a protocol should handle
A circuit switching network has a guaranteed bandwidth, since the entire established circuit is dedicated to the communication between the two parties. The disadvantage of this is that the resource (the bandwidth) is not guaranteed to be fully utilised
{-# LANGUAGE MultiWayIf #-} | |
data Variables = Zero | One | LB | RB deriving (Show, Eq) | |
-- LB and RB symbolises left and right brackets, i.e. [, ] | |
pythagoras = concatMap (\c -> if | |
| c == Zero -> One : [LB, Zero, RB, Zero] | |
| c == One -> One : [One] | |
| c == LB -> [LB] | |
| c == RB -> [RB]) |
{-# LANGUAGE MultiWayIf #-} | |
data Algae = A | B deriving (Show, Eq) | |
algae :: [Algae] -> [Algae] | |
algae = concatMap (\c -> if | |
| c == A -> A:[B] | |
| c == B -> [A]) | |
/** | |
* Lossless reading of a file (line-separators are preserved). | |
* May temporarily require memory several times the size of the | |
* file. For a short time the raw file contents (a byte array), | |
* and the decoded characters reside in memory simultaneously. | |
* It is safest to apply to files that you know to be small | |
* relative to the available memory. | |
* @param path the absolute path of the file. | |
* @param encoding the charset with which the bytes in the file | |
* should be decoded. |