Ejemplo n.º 1
0
        public static int SendTo(PhpResource socket, string data, SendReceiveOptions flags,
                                 string address)
        {
            SocketStream stream = SocketStream.GetValid(socket);

            if (stream == null)
            {
                return(-1);
            }

            PhpException.FunctionNotSupported();
            return(-1);
        }
Ejemplo n.º 2
0
        public static bool Accept(PhpResource serverSocket, int timeout, out string peerName)
        {
            peerName = "";

            SocketStream stream = SocketStream.GetValid(serverSocket);

            if (stream == null)
            {
                return(false);
            }

            PhpException.FunctionNotSupported();
            return(false);
        }
Ejemplo n.º 3
0
        public static string ReceiveFrom(PhpResource socket, int length, SendReceiveOptions flags,
                                         out string address)
        {
            address = null;

            SocketStream stream = SocketStream.GetValid(socket);

            if (stream == null)
            {
                return(null);
            }

            PhpException.FunctionNotSupported();
            return(null);
        }