Results 1 to 2 of 2

Thread: issue with getprotocol

  1. #1

    Default issue with getprotocol

    I have a question --- We are trying to log what protocol an end user is connecting on. For example port and protocol. We are allowing rtmpe, rtmp and rtmpt.... In the manual we see this:

    . Iclient.getProtocol()

    * the problem with this on that in the maual it shows (1-rtmp/3-RTMPT)_no referer to any other protocol ... so I'm nto sure what will happen on HTTP or RTMPE


    We see the above but nothing being returned for rtmpe even though i know we have connections for it. Are we using the correct per the above Iclient.getProtocolo() or is there something esle we should use to get this information?

  2. #2

    Default

    The complete list is:

    Code:
    public static final  byte PROTOCOL_RTMP = 0x01;
    public static final  byte PROTOCOL_RTMPT = 0x03;
    public static final  byte PROTOCOL_HTTP = 0x21;
    public static final  byte PROTOCOL_RTSP = 0x22;
    public static final  byte PROTOCOL_RTSPHTTP = 0x23;
    public static final  byte PROTOCOL_RTSPTUNNELINGGET = 0x26;
    public static final  byte PROTOCOL_RTSPTUNNELINGPOST = 0x27;
    If it is RTMPE or RTMPTE then IClient.isEncrypted() will be true. If RTMPS then IClient.isEncrypted() will be false but IClient.isSecure() will be true.

    Charlie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •