Example #1
0
        private LinuxError ConvertError(WSAError ErrorCode)
        {
            LinuxError Errno;

            if (!ErrorMap.TryGetValue(ErrorCode, out Errno))
            {
                Errno = (LinuxError)ErrorCode;
            }

            return(Errno);
        }
Example #2
0
 private long WriteWinSock2Error(ServiceCtx Context, WSAError ErrorCode)
 {
     return(WriteBsdResult(Context, -1, ConvertError(ErrorCode)));
 }