RTSP:Listening Port- Server Class

I have been given a assignment which I have to write a detailed description of the main method from the Server class (available from http://www.csee.umbc.edu/~pmundur/courses/CMSC691C/lab5-kurose-ross.html)
An example of the level of description that is required is
The parse_server_response method of the Client class: The method starts by initialising a local variable
to zero. In lines 342 to 362, the Client tries to read the three lines of the server response. If this is
unsuccessful for any reason, the catch clause (lines 366 – 369) is executed.
I am new to JAVA, so wondered what is the best way to go about it e.g. suggested tutorial on RTSP:Listening port etc and any websites which will help me in getting an understanding of this kind of coding.
It is quite frustrating as we were only taught the basic of OO principles and the assignment is asking us to explain the code.
Thanks

Yes, but this does not go into the details of what is doing what. I need to know what each command line is doing??
Thnx

Similar Messages

  • Oracle listener port - server health monitoring

    I want to use Intermapper to monitor the health of my Oracle server. Which port should I have Intermapper watching? How do you monitor the health of your server?
    Thanks.

    Does Interapper have some guidance? If you're using the default listener port of 1521, you may be able to verify that the listener is up, but that doesn't mean that the database is up or accepting connections. Without actually logging in, I'm not sure what sort of monitoring you'd actually get...
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • WLST - Changing server's listen port

    Hi,
    i'm trying to change the listen port of a managed server using WLST with the following code :
    readDomain('...')
    cd('Servers')
    cd('myServer')
    set('ListenPort',8000)
    updateDomain()
    closeDomain()
    Everything is ok so far.
    Now, if i try to deploy an ear onto this server i get the folowing exception :
    *<20 juil. 2010 10 h 18 CEST> <Warning> <HTTP> <BEA-101162> <User defined listener weblogic.wsee.deploy.ServletDeployListener failed: weblogic*
    *.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module: admin-tools.war.*
    weblogic.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module: admin-tools.war
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:32)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run(EventsManager.java:480)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(EventsManager.java:149)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.ws.WsException: weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alias not supplied
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:129)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:29)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run(EventsManager.java:480)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alias not supplied
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.init(SecurityPolicyCustomizer.java:69)
    at weblogic.wsee.security.policy.SecurityPolicyCustomizer.process(SecurityPolicyCustomizer.java:75)
    at weblogic.wsee.policy.runtime.PolicyServer.processAssertions(PolicyServer.java:167)
    at weblogic.wsee.policy.runtime.PolicyFinder.readPolicyFromStream(PolicyFinder.java:99)
    at weblogic.wsee.policy.runtime.PolicyFinder.loadPolicies(PolicyFinder.java:179)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.security.configuration.WssConfigurationException: Certificate Alias not supplied
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initSSLCredential(ServerBSTCredentialProvider.java:224)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredentials(ServerBSTCredentialProvider.java:97)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConfiguration(WssConfiguration.java:327)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfiguration.java:119)
    at weblogic.wsee.security.configuration.WssConfiguration.getSupprotedTokens(WssConfiguration.java:171)
    Truncated. see log file for complete stacktrace
    Weblogic Portal 10.2
    Thx a lot
    Emmanuel

    Hi,
    <Warning> <HTTP> <BEA-101162> <User defined listener weblogic.wsee.deploy.ServletDeployListener failed: weblogicAbove BEA-101162 is thrown while deploying a WSDL that references a schema from a URI that is not accessible, the WebService fails to be deployed and the WebService is not available to service requests.
    I am not sure if this is applicable to you but you can refer to metalink document Description of All Signature Patterns in the Current Signature Patterns Release [ID 749964.1] --> refer "Signature ID: 003132"
    Hope this helps.
    Regards,
    Mithun

  • Re: Server machine and listening port

    Is there a way to retrieve the machine a server is running on (and its listening
    port) inside a Servlet or JSP?
    Currently whenever I change the machine or listening port for a server (via the
    console or the config.xml), I also need to find all Servlets and JSPs and alter
    them accordingly to reflect the change. This becomes very tedious and cumbersome.
    Thanks!

    Hi Jamieson,
    You can get to parameters like the server name and listen port using methods
    of weblogic.management.configuration.ServerMBean
    (http://edocs.bea.com/wls/docs60/javadocs/index.html). For example, to get
    the listen port, use something like this:
    // Create an instance of ServerMBean
    weblogic.management.configuration.ServerMBean servermbean =
    weblogic.management.Admin.getServer();
    // Get the listen port
    int port = servermbean.getListenPort();
    System.out.println("port = " + port);
    // Get the server listenaddress
    String listenAddress = servermbean.getListenAddress();
    System.out.println("listenAddress = " + listenAddress);
    // To get the SSL listenport, create an instance of SSLMBean from the
    ServerMBean instance
    weblogic.management.configuration.SSLMBean sslmbean = servermbean.getSSL();
    // Now, get the SSL listenport
    int sslport = sslmbean.getListenPort();
    System.out.println("sslport = " + sslport);
    Robert's suggestion of using relative URLs is even better, however!
    - Ginny
    "Jamieson Rivers" <[email protected]> wrote in message
    news:3bb92179$[email protected]..
    >
    Is there a way to retrieve the machine a server is running on (and itslistening
    port) inside a Servlet or JSP?
    Currently whenever I change the machine or listening port for a server(via the
    console or the config.xml), I also need to find all Servlets and JSPs andalter
    them accordingly to reflect the change. This becomes very tedious andcumbersome.
    >
    >
    Thanks!

  • Should The Cluster server have a diff. listening port.

              Hello,
              I have 2 managed servers and the main admin server, which routes the requests
              to one of the 2 Managed Server instances on the round-robin algo... Should the
              Admin server's have a diff. listening port like(7001 as per default) to that of
              the 2 Managed servers which r listening on 7005, why is this needed, is there
              a major advantage on doing this... Plz clarify... and can we call the Managed
              servers as Cluster instances...
              Thanx in Advance
              

    You can run admin & managed servers on the same port number.
              and yes you can call managed servers which are part of cluster called as
              clustered instances/nodes etc...
              Kumar
              VenkatRahul wrote:
              > Hello,
              >
              > I have 2 managed servers and the main admin server, which routes the requests
              > to one of the 2 Managed Server instances on the round-robin algo... Should the
              > Admin server's have a diff. listening port like(7001 as per default) to that of
              > the 2 Managed servers which r listening on 7005, why is this needed, is there
              > a major advantage on doing this... Plz clarify... and can we call the Managed
              > servers as Cluster instances...
              >
              > Thanx in Advance
              >
              

  • Listen port of cluster server instances

              Hi,
              Is it required for the server instances in a cluster to have the
              same listen port. In such a case it will not possible to have
              more than a single server in one machine becoz only one server can be listening
              to a single port.
              Plz guid me..
              thanx in adv
              pradeep
              

    [att1.html]
              

  • Why WebLogic Server uses '7001' as its default listen port ?

    I have an interesting question about "Why WebLogic Server uses '7001' as its default listen port ?" .
    Any historical consideration or just fun?
    Regards,
    wenpin

    HI I updated my AMagent.properties file as CDSSO = enable, after doing this I entered user id password in access manager console, after that i am getting an error Access to resource is denied, its not updating any log file in Agent machine
    Thanks
    Saikumar T

  • Listener port application server

    Hi,
    i changed the listener port in oracle.
    where can i change the port in application 10.1.2?

    If you are trying to edit the http server port, you need to edit OH/Apache/Apache/conf/httpd.conf configuration file and change the 'Listen' directive to a desired port value. Restart http server for the change to take effect

  • Identify Server listener port

    Just wonder how to find out identify server listener port number? Which file it actually stores?
    Thanks.

    Thanks for reply.
    I actually got problems with accessing amconsole.
    It always complain about server error. I installed identity server using web server as container.
    errors in webserver logs:
    "WEB4220: The web application [amserver ] is unavailable because of errors duing startup. Please check the logs for errors".
    Appreciate advice!

  • Listening port in oracle app. server 10gR2 in window 2003

    Hi Experts,
    How to find a listening port number of app. server?
    Thanks,
    Jim

    Check on the midtier home, the %ORACLE_HOME%\Apcahe\Apache\conf\httpd.conf file for port directive. Or if you have SSL-configured on the AS, the check ssl.conf file in the same location for the same directive.
    or Alternatively, log on to the EM for midtier. Go to ports and see the Webcache port for listen.
    Remember that these will be the listen ports for Webcache. For port where OHS will listen can be obtained by looking for Listen directive in the above files, and on EM, the port listed for OHS Listen (or SSL Listen, in case of SSL).
    Edited by: AMN on Dec 2, 2008 10:42 AM

  • Difference between HTTP Server port and HTTP Server listen port

    Hi,
    What's the difference between the following?
    Oracle HTTP Server port = 7780
    Oracle HTTP Server listen port = 7781
    They are the ports used in my 9ias 9.0.3 instance.
    Please advise.
    Thank you.

    Hi,
    The server port, 7780, is port where HTTP server response and listen ports are other ports tha HTTP Server can listen. In IAS, the default configuration, the server port is response for Web Cache and Web Cache connect with HTTP Server in listen port.
    Marcio Mesti

  • Problem when I tried to change weblogic listen port from 7001 to 80

    HI! I have problem when I tried to change weblogic listen port from 7001 to 80. When I changed from 7001 to 7777 then all works ok! But why not on 80? With apache all works ok on 80 too.
    I restart my weblogic server and then I have following errors.
    <2009.1.4 16:02:13 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to STARTING>
    2009.1.4 16:02:14 oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkPr
    oviderClass
    INFO: JMX Portable Framework initialized with platform SPI "class oracle.as.jmx.
    framework.wls.spi.JMXFrameworkProviderImpl"
    2009.1.4 16:02:15 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    <2009.1.4 16:02:22 EEST> <Notice> <Log Management> <BEA-170027> <The Server has
    established connection with the Domain level Diagnostic Service successfully.>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to ADMIN>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to RESUMING>
    <2009.1.4 16:02:22 EEST> <Emergency> <Security> <BEA-090087> <Server failed to b
    ind to the configured Admin port. The port may already be used by another proces
    s.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default". The address 85.254.224.235 might be
    incorrect or another process is using port 80: java.net.BindException: Address
    already in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed
    . Reason: Server failed to bind to any usable port. See preceeding log message f
    or details.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default[2]". The address 127.0.0.1 might be i
    ncorrect or another process is using port 80: java.net.BindException: Address al
    ready in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default[1]". The address 192.168.0.102 might
    be incorrect or another process is using port 80: java.net.BindException: Addres
    s already in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to FAILED>
    <2009.1.4 16:02:22 EEST> <Error> <WebLogicServer> <BEA-000383> <A critical servi
    ce failed. The server will shut itself down>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to FORCE_SHUTTING_DOWN>
    2009.1.4 16:02:22 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    2009.1.4 16:02:22 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    Best regards!

    Debuger,
    It does not matter which WLS version I am using (although I'm using 10.3, the one that comes with JDev 11g).
    The problem is that SOME OTHER PROCESS on your machine is listening on port 80. Guess you need to go to the Microsoft forums to find out how you can tell what that OTHER, NOT WLS process is.
    John

  • Select Listener Port Number from which_table?

    I'm writing a SQL script that, among other things, disconnects from Oracle and then reconnects to the same instance as a different user. I'm able to query v$database and v$instance to get most of the information I need (host, service name, etc) for the reconnect part. The only part I'm missing is the listener port number. I could hard code it to 1521, but that isn't very flexible. Currently, I'm prompting the user (which is normally me) for the listener port number in the SQL script, but that just seems a little bit lame. So my question is this: is there a view or table somewhere in the sys schema that I could use to view the listener configuration? I'm mostly working with 10gR2+ databases.

    cleavitt wrote:
    That is possible, but it needs to be a standard Oracle configuration if the script is to remain generic and portable. The script is actually working fine as-is. I was just trying to go the extra mile and determine the port number automatically. I could also prompt for a TNSNames entry as suggested by others, but I don't always have an entry defined for all of the Oracle instances in my company on every workstation that I work from.
    Here is the script for anyone that is interested. It started out as a script that I found online, but the original did not work with 11g case-sensitive passwords and it only worked for local connections on the server.
    Description:
    Allows a DBA user to impersonate another user (without knowing the user's password).
    Similar in function to using the SU command in Unix/Linux.
    Note:
    This script temporarily changes the impersonated user's password and may cause other
    connection attempts by that user to fail during the moment that the temporary password is in effect.
    WHENEVER SQLERROR EXIT
    SET VERIFY OFF
    ACCEPT username CHAR PROMPT 'Enter the username: '
    ACCEPT listenerport NUMBER DEFAULT 1521 PROMPT 'Enter the listener port [1521]: '
    -- Define substitution variables and column mapping.
    COLUMN username NEW_VALUE username
    COLUMN password_hash NEW_VALUE password_hash
    COLUMN host_name NEW_VALUE hostname
    COLUMN instance_name NEW_VALUE servicename
    -- Populate substitution variables.
    SELECT
    name AS username,
    -- Get the user's password hash(s) and apply appropriate formatting for case-sensitive password if needed (11g+ passwords).
    NVL2(spare4, spare4 || ';' || password /* 11g+ */, password /* pre-11g */) AS password_hash
    FROM sys.user$
    WHERE name = UPPER('&username');
    SELECT host_name, instance_name
    FROM v$instance;
    -- Set the user's password to a temporary value.
    ALTER USER &username IDENTIFIED BY TempPass;
    -- Use the temporary password to connect to the database as the user.
    CONNECT &username/TempPass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=&hostname)(PORT=&listenerport))(CONNECT_DATA=(UR=A)(SID=&servicename)));
    -- Reset the user's password to the original value using the original password hash(s).
    ALTER USER &username IDENTIFIED BY VALUES '&password_hash';
    SHOW USER
    UNDEFINE username
    UNDEFINE password_hash
    UNDEFINE hostname
    UNDEFINE servicename
    UNDEFINE listenerport
    WHENEVER SQLERROR CONTINUE
    SET VERIFY ONAnd by so doing you just kicked the user's password expiration on down the road, negating the benefit of havng a password expiration.
    Also, you locked out the legitimate user of this account, until such time as you reset it back to the original. And in the mean time, if this happens to be an account used by some automated process, that process doesn't know the new "temporary" password and runs a risk of locking the account from too many invalid connection attempts. Try to become SYSMAN or DBSNMP from this, and you will very quickly kill OEM.
    This has "bad idea" written all over it. What problem is it supposed to be be solving?

  • RDP listening port needs to be changed on one client PC - can't connect via Anywhere Access

    We have a setup with Server 2012 Essentials and 10 workstations. We have setup Anywhere Access and is working fine. We have one system (Windows 7 Pro) on the network running AADS Server (use to be called XP Unlimited). This allows several users to logon
    to that PC remotely at once as well as someone local using it. This PC needs to be changed from the default 3389 port due to the new AADS Server version requiring it. When ever we change the listening port we cannot remote desktop into this PC. It is available
    in Remote Web Access Portal but just sits trying to connect. We have allowed the new connection in the Windows Firewall and even turned the firewall off as a test with no luck.
    My question is, can we change the default 3389 port connection that the Server redirects you to for one PC on the network? If not how do you change in the Server to look at another local port for RDP once in the portal?
    Thanks, Jason

    Hi Jboy,
    Can you navigate to HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Terminal Server, WinStations and RDP-Tcp.  Right click on the PortNumber dword and select Modify.  Change the base to Decimal and enter a new port between 1025 and 65535
    that is not already in use. Finally click OK.
    http://support.microsoft.com/kb/306759
    Thanks,
    Umesh.S.K

  • MDB and Database - Listener port stops working

    Hi,
    I have created an MDB which does the following when a message is received from the queue.
    1. Store message in database
    2. do some processing
    At step 1, if there is any issue with the database connection (e.g. database is not available etc), I rollback transaction. My idea is to leave the message on queue for now and retry it again after some time unless the database is back again. "Maximum retries" of the listener port is set to N but since there is no retry interval available, all N retries are done in a flash and my listener port stops working. I cannot use backout mechanism as I have to wait for the database to be back again. What are my options?

    usmanchaudhry wrote:
    Hi,
    I have created an MDB which does the following when a message is received from the queue.
    1. Store message in database
    2. do some processing
    At step 1, if there is any issue with the database connection (e.g. database is not available etc), I rollback transaction. My idea is to leave the message on queue for now and retry it again after some time unless the database is back again. "Maximum retries" of the listener port is set to N but since there is no retry interval available, all N retries are done in a flash and my listener port stops working. I cannot use backout mechanism as I have to wait for the database to be back again. What are my options?i believe you need an XA driver and a transaction manager, for starters.
    a simple JDBC rollback won't do it.
    which app server are you using?
    which jms provider?
    %

Maybe you are looking for

  • How to call a variable from another class?

    Greetings I�m designing a program that is called Senior.java, and I want to design it�s menus, for simplicity in reading the code, I want to write a separate java file for each menu. For example I want a file.java, edit.java etc�. Since I�m not a pro

  • How can represent this data in AS3

    I try declare a ArrayCollection like this var arr:ArrayCollection = new ArrayCollection( [{group:"Group One", members:["Jonny", "Tommy", "Lucy"]}, etc..]); I can't declare that using static sentence. So I do it like this: var dpArr:ArrayCollection =

  • Warehouse management - bapi or function module

    Hi friends, according to my client requirement, we have to change the warehouse door no. in the outbount delivery. can anybody suggest me the function module or bapi for this. i know this is of technical, i just want to help the technical consultant.

  • ALLOW THE USE OF PLAYLISTS OFFLINE WHEN USING DJAY 2

    Spotify isgood with djay 2 but, they need to allow us to use the offline playlist when no wifi or data is available.

  • CS3 versus Premiere Pro 2.0

    I am thinking of upgrading to CS3 from 2.0 Does CS3 use significantly more processor power and/or memory? Any gotchas? Will my Pro 2.0 project files open up fine in CS3?