Skip to content

Commit 5726281

Browse files
iohk-bors[bot]coot
andauthored
Merge #2772
2772: snocket: introduce LocalSocket and FileDescriptor newtypes r=coot a=coot Provide a `LocalSocket` newtype wrapper and `FileDescriptor` type (newtype wrapper too). `LocalSocket` is a uniform newtype for `HANDLE` on `Windows` and `Socket` on `Posix`. FileDescriptor is a newtype wrapper for file descriptor numbers. For sockets or unix sockets we use file descriptor numbers, for windows named pipes (`HANDLE`) we use the memory address as the file descriptor number. `FileDescriptor` only exposes `Eq` and `Show` instances, the constructor is private. Co-authored-by: Marcin Szamotulski <[email protected]>
2 parents dc5a95f + 90071e1 commit 5726281

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)