aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Bsd/PollEvent.cs
blob: 49cd4877eea702834b1c806a66bb1d4f2b27fa98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Ryujinx.HLE.HOS.Services.Bsd
{
    class PollEvent
    {
        public enum EventTypeMask
        {
            Input        = 1,
            UrgentInput  = 2,
            Output       = 4,
            Error        = 8,
            Disconnected = 0x10,
            Invalid      = 0x20,
        }

        public int           SocketFd     { get; private set; }
        public BsdSocket     Socket       { get; private set; }
        public EventTypeMask InputEvents  { get; private set; }
        public EventTypeMask OutputEvents { get; private set; }

        public PollEvent(int SocketFd, BsdSocket Socket, EventTypeMask InputEvents, EventTypeMask OutputEvents)
        {
            this.SocketFd     = SocketFd;
            this.Socket       = Socket;
            this.InputEvents  = InputEvents;
            this.OutputEvents = OutputEvents;
        }
    }
}