for TARGET_J2EE only:
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / PeerCred.cs
index 76071bcbca53aa7041ec9ca5f505409b211b44ad..d071ec9f280741992e01dd23cf27ba7ef6a45023 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Mono.Posix.PeerCred: Peer credentials class for AF_UNIX sockets
+// Mono.Unix.PeerCred: Peer credentials class for AF_UNIX sockets
 //
 // Authors:
 //     Dick Porter (dick@ximian.com)
 using System;
 using System.Net.Sockets;
 
-namespace Mono.Posix
+namespace Mono.Unix
 {
        public class PeerCred
        {
-               private struct PeerCredData {
-                       public int pid;
-                       public int uid;
-                       public int gid;
-               }
-
                /* Make sure this doesn't clash with anything in
                 * SocketOptionName, and keep it synchronised with the
                 * runtime
                 */
                private const int so_peercred=10001;
-               private PeerCredData data;
+               private Mono.Posix.PeerCredData data;
                
                public PeerCred (Socket sock) {
                        if (sock.AddressFamily != AddressFamily.Unix) {
                                throw new ArgumentException ("Only Unix sockets are supported", "sock");
                        }
 
-                       data = (PeerCredData)sock.GetSocketOption (SocketOptionLevel.Socket, (SocketOptionName)so_peercred);
+                       data = (Mono.Posix.PeerCredData)
+                               sock.GetSocketOption (SocketOptionLevel.Socket, (SocketOptionName)so_peercred);
                }
                
                public int ProcessID {