Пример #1
0
        public long ReadDatagram(Pointer <sbyte> data, long maxlen, QHostAddress host, ref short port)
        {
            StackItem[] stack = new StackItem[5];
#if DEBUG
            stack[1].s_class = (IntPtr)DebugGCHandle.Alloc(data);
#else
            stack[1].s_class = (IntPtr)GCHandle.Alloc(data);
#endif
            stack[2].s_long = maxlen;
#if DEBUG
            stack[3].s_class = (IntPtr)DebugGCHandle.Alloc(host);
#else
            stack[3].s_class = (IntPtr)GCHandle.Alloc(host);
#endif
            stack[4].s_short = port;
            interceptor.Invoke("readDatagram$$#$", "readDatagram(char*, qint64, QHostAddress*, unsigned short*)", stack);
#if DEBUG
            DebugGCHandle.Free((GCHandle)stack[1].s_class);
#else
            ((GCHandle)stack[1].s_class).SynchronizedFree();
#endif
#if DEBUG
            DebugGCHandle.Free((GCHandle)stack[3].s_class);
#else
            ((GCHandle)stack[3].s_class).SynchronizedFree();
#endif
            port = stack[4].s_short;
            return(stack[0].s_long);
        }
Пример #2
0
 public bool IsInSubnet(QHostAddress subnet, int netmask)
 {
     return((bool)interceptor.Invoke("isInSubnet#$", "isInSubnet(const QHostAddress&, int) const", typeof(bool), typeof(QHostAddress), subnet, typeof(int), netmask));
 }
Пример #3
0
 public void SetNetmask(QHostAddress newNetmask)
 {
     interceptor.Invoke("setNetmask#", "setNetmask(const QHostAddress&)", typeof(void), typeof(QHostAddress), newNetmask);
 }
Пример #4
0
 public bool Bind(QHostAddress address, ushort port)
 {
     return((bool)interceptor.Invoke("bind#$", "bind(const QHostAddress&, unsigned short)", typeof(bool), typeof(QHostAddress), address, typeof(ushort), port));
 }
Пример #5
0
 public bool Bind(QHostAddress address, ushort port)
 {
     return (bool) interceptor.Invoke("bind#$", "bind(const QHostAddress&, unsigned short)", typeof(bool), typeof(QHostAddress), address, typeof(ushort), port);
 }
Пример #6
0
 public long WriteDatagram(string data, long len, QHostAddress host, ushort port)
 {
     return((long)interceptor.Invoke("writeDatagram$$#$", "writeDatagram(const char*, qint64, const QHostAddress&, unsigned short)", typeof(long), typeof(string), data, typeof(long), len, typeof(QHostAddress), host, typeof(ushort), port));
 }
Пример #7
0
 public void SetBroadcast(QHostAddress newBroadcast)
 {
     interceptor.Invoke("setBroadcast#", "setBroadcast(const QHostAddress&)", typeof(void), typeof(QHostAddress), newBroadcast);
 }
Пример #8
0
Файл: Qt.cs Проект: KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QHostAddress arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QHostAddress&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QHostAddress), arg2);
 }
Пример #9
0
 public void SetIp(QHostAddress newIp)
 {
     interceptor.Invoke("setIp#", "setIp(const QHostAddress&)", typeof(void), typeof(QHostAddress), newIp);
 }
Пример #10
0
 public void SetNetmask(QHostAddress newNetmask)
 {
     interceptor.Invoke("setNetmask#", "setNetmask(const QHostAddress&)", typeof(void), typeof(QHostAddress), newNetmask);
 }
Пример #11
0
 public bool Listen(QHostAddress address)
 {
     return (bool) interceptor.Invoke("listen#", "listen(const QHostAddress&)", typeof(bool), typeof(QHostAddress), address);
 }
Пример #12
0
 public bool Listen(QHostAddress address, ushort port)
 {
     return (bool) interceptor.Invoke("listen#$", "listen(const QHostAddress&, unsigned short)", typeof(bool), typeof(QHostAddress), address, typeof(ushort), port);
 }
Пример #13
0
 public bool Listen(QHostAddress address)
 {
     return((bool)interceptor.Invoke("listen#", "listen(const QHostAddress&)", typeof(bool), typeof(QHostAddress), address));
 }
Пример #14
0
 protected void SetPeerAddress(QHostAddress address)
 {
     interceptor.Invoke("setPeerAddress#", "setPeerAddress(const QHostAddress&)", typeof(void), typeof(QHostAddress), address);
 }
Пример #15
0
 public bool IsInSubnet(QHostAddress subnet, int netmask)
 {
     return (bool) interceptor.Invoke("isInSubnet#$", "isInSubnet(const QHostAddress&, int) const", typeof(bool), typeof(QHostAddress), subnet, typeof(int), netmask);
 }
Пример #16
0
 public void ConnectToHost(QHostAddress address, ushort port)
 {
     interceptor.Invoke("connectToHost#$", "connectToHost(const QHostAddress&, unsigned short)", typeof(void), typeof(QHostAddress), address, typeof(ushort), port);
 }
Пример #17
0
 public QHostAddress(QHostAddress copy)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QHostAddress#", "QHostAddress(const QHostAddress&)", typeof(void), typeof(QHostAddress), copy);
 }
Пример #18
0
 /// <remarks>
 ///  Tries to connect to the %Soprano server.
 ///  \return <pre>true</pre> on success, <pre>false</pre> if an error occured.
 ///  Check lastError() for details.
 ///              </remarks>        <short>    Tries to connect to the %Soprano server.</short>
 public bool Connect(QHostAddress address, int port)
 {
     return (bool) interceptor.Invoke("connect#$", "connect(const QHostAddress&, int)", typeof(bool), typeof(QHostAddress), address, typeof(int), port);
 }
Пример #19
0
 public QHostAddress(QHostAddress.SpecialAddress address)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QHostAddress$", "QHostAddress(QHostAddress::SpecialAddress)", typeof(void), typeof(QHostAddress.SpecialAddress), address);
 }
Пример #20
0
 public long ReadDatagram(Pointer <sbyte> data, long maxlen, QHostAddress host)
 {
     return((long)interceptor.Invoke("readDatagram$$#", "readDatagram(char*, qint64, QHostAddress*)", typeof(long), typeof(Pointer <sbyte>), data, typeof(long), maxlen, typeof(QHostAddress), host));
 }
Пример #21
0
 public void ConnectToHost(QHostAddress address, ushort port, uint mode)
 {
     interceptor.Invoke("connectToHost#$$", "connectToHost(const QHostAddress&, unsigned short, QIODevice::OpenMode)", typeof(void), typeof(QHostAddress), address, typeof(ushort), port, typeof(uint), mode);
 }
Пример #22
0
 public long WriteDatagram(QByteArray datagram, QHostAddress host, ushort port)
 {
     return((long)interceptor.Invoke("writeDatagram##$", "writeDatagram(const QByteArray&, const QHostAddress&, unsigned short)", typeof(long), typeof(QByteArray), datagram, typeof(QHostAddress), host, typeof(ushort), port));
 }
Пример #23
0
 public void ConnectToHost(QHostAddress address, ushort port)
 {
     interceptor.Invoke("connectToHost#$", "connectToHost(const QHostAddress&, unsigned short)", typeof(void), typeof(QHostAddress), address, typeof(ushort), port);
 }
Пример #24
0
 public bool Bind(QHostAddress address, ushort port, uint mode)
 {
     return((bool)interceptor.Invoke("bind#$$", "bind(const QHostAddress&, unsigned short, QUdpSocket::BindMode)", typeof(bool), typeof(QHostAddress), address, typeof(ushort), port, typeof(uint), mode));
 }
Пример #25
0
 protected void SetPeerAddress(QHostAddress address)
 {
     interceptor.Invoke("setPeerAddress#", "setPeerAddress(const QHostAddress&)", typeof(void), typeof(QHostAddress), address);
 }
Пример #26
0
 public void SetIp(QHostAddress newIp)
 {
     interceptor.Invoke("setIp#", "setIp(const QHostAddress&)", typeof(void), typeof(QHostAddress), newIp);
 }
Пример #27
0
 public bool Bind(QHostAddress address, ushort port, uint mode)
 {
     return (bool) interceptor.Invoke("bind#$$", "bind(const QHostAddress&, unsigned short, QUdpSocket::BindMode)", typeof(bool), typeof(QHostAddress), address, typeof(ushort), port, typeof(uint), mode);
 }
Пример #28
0
 public void SetBroadcast(QHostAddress newBroadcast)
 {
     interceptor.Invoke("setBroadcast#", "setBroadcast(const QHostAddress&)", typeof(void), typeof(QHostAddress), newBroadcast);
 }
Пример #29
0
 public long ReadDatagram(Pointer<sbyte> data, long maxlen, QHostAddress host, ref short port)
 {
     StackItem[] stack = new StackItem[5];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(data);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(data);
     #endif
     stack[2].s_long = maxlen;
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(host);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(host);
     #endif
     stack[4].s_short = port;
     interceptor.Invoke("readDatagram$$#$", "readDatagram(char*, qint64, QHostAddress*, unsigned short*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).SynchronizedFree();
     #endif
     port = stack[4].s_short;
     return stack[0].s_long;
 }
Пример #30
0
 public QHostAddress(QHostAddress copy) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QHostAddress#", "QHostAddress(const QHostAddress&)", typeof(void), typeof(QHostAddress), copy);
 }
Пример #31
0
 public long ReadDatagram(Pointer<sbyte> data, long maxlen, QHostAddress host)
 {
     return (long) interceptor.Invoke("readDatagram$$#", "readDatagram(char*, qint64, QHostAddress*)", typeof(long), typeof(Pointer<sbyte>), data, typeof(long), maxlen, typeof(QHostAddress), host);
 }
Пример #32
0
 public void ConnectToHost(QHostAddress address, ushort port, uint mode)
 {
     interceptor.Invoke("connectToHost#$$", "connectToHost(const QHostAddress&, unsigned short, QIODevice::OpenMode)", typeof(void), typeof(QHostAddress), address, typeof(ushort), port, typeof(uint), mode);
 }
Пример #33
0
 public long WriteDatagram(string data, long len, QHostAddress host, ushort port)
 {
     return (long) interceptor.Invoke("writeDatagram$$#$", "writeDatagram(const char*, qint64, const QHostAddress&, unsigned short)", typeof(long), typeof(string), data, typeof(long), len, typeof(QHostAddress), host, typeof(ushort), port);
 }
Пример #34
0
Файл: Qt.cs Проект: KDE/qyoto
 public static uint QHash(QHostAddress key)
 {
     return (uint) staticInterceptor.Invoke("qHash#", "qHash(const QHostAddress&)", typeof(uint), typeof(QHostAddress), key);
 }
Пример #35
0
 public long WriteDatagram(QByteArray datagram, QHostAddress host, ushort port)
 {
     return (long) interceptor.Invoke("writeDatagram##$", "writeDatagram(const QByteArray&, const QHostAddress&, unsigned short)", typeof(long), typeof(QByteArray), datagram, typeof(QHostAddress), host, typeof(ushort), port);
 }
Пример #36
0
Файл: Qt.cs Проект: KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QHostAddress arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QHostAddress&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QHostAddress), arg2);
 }
Пример #37
0
 public bool Connect(QHostAddress address)
 {
     return (bool) interceptor.Invoke("connect#", "connect(const QHostAddress&)", typeof(bool), typeof(QHostAddress), address);
 }