Access https server on linux from a client on windows

Dear all,
I am trying to access a servlet on another computer through a Java Application. My code is working perfectly on HTTP but its gives "no trusted certificates found" error on HTTPS when i try to connect it through some other system but doesnot give the error when connecting from same system. Plz help its urgent.

What version of java are you using?
Check out this link:
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert/57436

Similar Messages

  • My application needs to access web server. So, from that application how do i call firefox ? and how do i pass an argument such as url/web server ip address?

    My application needs to a access web server. So, from that application how do i call Firefox ? And how do i pass an argument such as the url/web server ip address?
    == This happened ==
    Not sure how often

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • Run a report in reports server calling it from a client/server form

    How can I run a report in reports server calling it from a client/server form ?
    Thanks

    In client server mode you can use RUN_PRODUCT built-in. Lookup help for this built-in for more details.
    Best of luck!

  • Installing Essbase Server on Linux, Other essbase components on windows.

    Hello all,
    We are planning to upgrade from 11.1.1.4 to 11.1.2.2. We have just the essbase server installed on linux and other essbase components like Essbase Administration Services, essbase integration services, provider services installed on Windows. My question is how do I go about gathering files to install just the Essbase Server on Linux and other Components on Windows. I have gone through the Media Pack doc for Windows 2008 64(on which we plan to install the other essbase components). In that if I click on the files needed for essbase(listed as essbase plus) it gives me all the files needed to install essbase components.Which means(correct me if am wrong) on a server where am planning to install just essbase components like Provider services, Essbase Admin Services and provider services it gives me the files needed for Essbase server as well, which I donot need. So how do I go about accomplishing this. Or are there any other ways to achieve what am trying to do.
    Thanks,
    Ted.

    Awesome, thats what I thought, so in that case, if I want to install Essbase server on Linux, I have to download the essbase files for linux and select only the essbase server while installing, and if I want to install essbase components on windows, I have to download the same set of files but for Windows OS and select to install only the essbase components that I need. Is that right?
    Thanks,
    Ted.

  • Scrambled characters in response of G http-server on linux

    Hello.
    I am trying to set up the G Web Server from the Internet Toolkit 5.0 in LabVIEW 6.1 on Red Hat Linux 8.0. In general, that web server seems to be running.
    It is configured to listen for connections on port 8080. So when I access http://localhost:8080/ with my browser it shows up a directory listing of the www-root, but all files and dirs only in one line w/o linefeed.
    See attached Gwebroot.png
    Navigating through the files and dirs shows only web related contents but none of my VIs. Clicking on "index.htm" brings the G Web Server welcome screen just as expected. I can navigate through the example pages, but every time I click on a VI example I only get unreadable gibberish, like a
    s my browser reads the binary contents of the VI as ASCII characters. Same symptoms as discussed in Document ID: 0VJC8SSG but solution apparently not applicable.
    A remote computer on Win32 or Linux behaves the same.
    I already have ITK and proper VI running on Win32 and it works fine, also viewing that VI with Linux remote machine. But hosting same VI on Linux G web server only shows scrambled ASCII characters.
    See attached Gexppi.png and Gproj2.png
    What am I doing wrong?
    I'm out of ideas. Need help!
    Regards, Ralf Richter
    Attachments:
    Gwebroot.png ‏19 KB
    Gexppi.png ‏52 KB
    Gproj2.png ‏42 KB

    rrichte1 wrote:
    > Hello.
    >
    > I am trying to set up the G Web Server from the Internet Toolkit 5.0
    > in LabVIEW 6.1 on Red Hat Linux 8.0. In general, that web server seems
    > to be running.
    > It is configured to listen for connections on port 8080. So when I
    > access http://localhost:8080/ with my browser it shows up a directory
    > listing of the www-root, but all files and dirs only in one line w/o
    > linefeed.
    > See attached Gwebroot.png
    Sounds like a little problem with the line termination. On Windows the
    line termination is a carriage return/line feed. On Unix it is only line
    feed.
    Now HTML requires in fact as line termination and the way this
    is probably solved is that a routine takes the incoming string and
    replaces the \r with and \n with . Only the Unix version of the
    directory listing function might use the platform specific line
    termination constant so the string is really converted into
    somethingsomething else..... and this is not treated as multi
    line in most browsers.
    > Navigating through the files and dirs shows only web related contents
    > but none of my VIs. Clicking on "index.htm" brings the G Web Server
    > welcome screen just as expected. I can navigate through the example
    > pages, but every time I click on a VI example I only get unreadable
    > gibberish, like as my browser reads the binary contents of the VI as
    > ASCII characters. Same symptoms as discussed in Document ID: 0VJC8SSG
    > but solution apparently not applicable.
    This has to do with wrong Content-Type/Mime-Type in the HTTP header or a
    broken browser client.
    > A remote computer on Win32 or Linux behaves the same.
    > I already have ITK and proper VI running on Win32 and it works fine,
    > also viewing that VI with Linux remote machine. But hosting same VI on
    > Linux G web server only shows scrambled ASCII characters.
    > See attached Gexppi.png and Gproj2.png
    Hmm, it could be that the function to read the mime.type file to assign
    the proper mime type to file endings also stumbles over the line endings
    in that file. After all the Internet Toolkit for LabVIEW 5 is very old
    and there might have been some fixes in the mean time. I believe I have
    looked at the version which came with LabVIEW 6.1 but not sure if those
    problems are solved there as I haven't really tried it out nor on
    Windows nor on Linux.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I want to access JMS Queue in websphere from a client application

    Hello all
    I tried to access a jms queue in the websphere from a client application
    my connection factory jndi name is : MyConn
    my queue name jndi name is : MyQueue
    and here is my code :
    Hashtable environment = new Hashtable();
    environment.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.ibm.websphere.naming.WsnInitialContextFactory");
    environment.put(Context.URL_PKG_PREFIXES, "com.ibm.ws.naming");
    environment.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809");
    return new InitialContext(environment);
    then:
    q = (Queue) ctx.lookup(QJNDIName);
    QueueConnectionFactory connFactory = (QueueConnectionFactory)
    ctx.lookup(ConnFactName);
    I had the following exception :
    javax.naming.NameNotFoundException: Context: networking/nodes/networking/servers/server1, name: MyQueue: First component in name MyQueue not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    Can i have any help please ....

    Hi
    You are missing some critical jar files in your class path. It should be namingclient.jar, also please or something similar that is missing in classpath.
    HTH
    VJ

  • Not able to enable web access (http server) on 5500

    Hi
    i have 5500 Swtich iam not able to enable http server in it
    the message show below
    Core-Switch> (enable) show ip http
    HTTP Information
    HTTP server: disabled
    HTTP port: 800
    Web Interface: Not supported
    HTTP active sessions: 0
    Core-Switch> (enable) show ver
    WS-C5500 Software, Version McpSW: 5.5(18) NmpSW: 5.5(18)
    Copyright (c) 1995-2002 by Cisco Systems
    NMP S/W compiled on Dec 16 2002, 15:34:48
    MCP S/W compiled on Dec 16 2002, 15:30:03
    System Bootstrap Version: 3.1.2
    Hardware Version: 1.4 Model: WS-C5500 Serial #: 069062010
    Mod Port Model Serial # Versions
    1 2 WS-X5530 008731527 Hw : 1.8
    Fw : 3.1.2
    Fw1: 4.1(1)
    Sw : 5.5(18)
    WS-F5520 008715296 Hw : 1.1
    WS-U5533 009612560 Hw : 1.0
    2 2 WS-X5530 008146970 Hw : 1.5
    Fw : 3.1.2
    Fw1: 3.1(2)
    Sw : 5.5(18)
    WS-F5520 007590229 Hw : 1.0
    WS-U5533 009613415 Hw : 1.0
    3 24 WS-X5234 022374107 Hw : 1.0
    Fw : 4.5(2)
    Sw : 5.5(18)
    4 24 WS-X5234 018022744 Hw : 1.0
    Fw : 4.5(2)
    Sw : 5.5(18)
    5 24 WS-X5234 018025296 Hw : 1.0
    Fw : 4.5(2)
    Sw : 5.5(18)
    6 24 WS-X5234 017582607 Hw : 1.0
    Fw : 4.5(2)
    Sw : 5.5(18)
    7 24 WS-X5234 017919621 Hw : 1.0
    Fw : 4.5(2)
    Sw : 5.5(18)
    10 1 WS-X5304 024975347 Hw : 7.7
    Fw : 20.22
    Fw1: 3.1(1)
    Sw : 12.1(20)

    have you run the 'set ip http server enable' command at the CatOS CLI of the 5500?
    as you've shown above, it is currently disabled
    does the switch have an ip address assigned to interface SC0? does SC0 belong to an inactive VLAN?
    if the switch OS does not support it, it should display an error as follows when you type in the command: (as shown below)
    console> set ip http server enable
    Feature not supported on the system.

  • How can I access HTTP services via Extendscript from PPro CC

    I attempting to build an HTML5 panel for Premiere Pro that retrieves assets from a third party REST API but there seems to be no support for Socket or XMLHttpRequest objects in this application which there is for others. (I get Error: Socket does not have a constructor)
    How would I go about making these requests in Extendscript?

    Hi schallis,
    I am also looking into using sockets (creating a socket server in Premiere) from my HTML5 panel, but am also getting "Socket is not defined" when running it in the context of Premiere.
    I think you are mixing up the Javascript engine that is in CEF (Chrome Embedded Framework, which runs the Javascript in your HTML panel), and CEP (Common Extensibility Framework, which runs JSX code). The Socket class in question belongs to the CEP side of things. so the lack of it in CEP doesn't mean that you can't use web sockets (if they were supported) in the CEF side.
    I am fairly certain jQuery doesn't do sockets, so it would be an XmlHttpRequest if using jQuery.

  • Accessing Sun App Server JNDI context from j2se client

    The following client's code snippet is raising javax.naming.NameNotFoundException.
    public static void main(String[] args)
         try
              Context jndiContex = getInitialContext();
              Object ref = jndiContex.lookup("java:comp/env/ejb/ru.srpu.jtest.service.UserRemote");
              UserRemote user = (UserRemote)PortableRemoteObject.narrow(ref,UserRemote.class);
              //logic goes here...
         catch (NamingException e)
              e.printStackTrace();
    public static Context getInitialContext( ) throws javax.naming.NamingException
         Properties p = new Properties( );
         p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
         p.put(Context.PROVIDER_URL, "iiop://localhost:3700/");
         return new javax.naming.InitialContext(p);
    }Beans are packed into the ejb-jar module of the EAR and deployed successfully. EJB's jndi-name is correct as well.
    Help to find a bug, please!

    We have a number of FAQ entries that cover client JNDI access here :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    -ken

  • Accessing OSB intalled in Linux from Windows

    Hi All,
    I am new to OSB. I have a Linux server with me in which i have installed Oracle SOA Suite 11g . The architecture is a Admin server and 3 managed server. The managed servers are soa_server,bam_server and osb_server. Now after installation of OSB i need to access the samples and the console from windows (my working machine). How to do that. I have downloaded OEPE helios installer from oracle site, but have no idea how to connect to server through eclipse. Could some one help me. Please.

    if you don't need the osb plugin and just want connect the server from your eclipse you need to get the ip-address from the linux box (and edit your hostfile so you can use the hostname of it
    ip-address of your vm depends on the network settings of your vm (bridged, nat, etc)Hi Eric,
    Thanks for your reply. could you please elaborate on the second part of your answer which i have quoted above. I have connectivity to the linux machine. Please let me know if there is any tutorials for the same.

  • Can't login to ML server network user from a client

    Hi,
    The computer name on my customer's ML server was changed post OD installation. Now I can't login with network user credentials from a MacBook.
    I also see the old server/hostname displayed in workgroup manager under "location" (see attached).
    I've tried destroying OD by deleting it in Server app then re-adding it again but it still shows the old name in WGM as shown in the screenshot above.
    I suspect this is related to authentication problems. Should I be running a utility like changeDirData.pl to update the old values? If so, what is the syntaxt?
    Old name was: server1.stmarys.lan
    New name is: server1.local
    I ran the following: sudo /Applications/Server.app/Contents/ServerRoot/usr/libexec/changeDirData.pl -i -s 192.168.2.2 -u diradmin -o server1.stmarys.lan -n server1.local
    But got an error: cant contact ldap server to get config info

    After contacting Apple server support, I was told there were two issues:
    1- ".local" cannot be used in a hostname due to conflict with Bonjour
    2- Hostnames must have three parts like "server.company.lan" & "server.lan" cannot be used
    I wish Apple would inform users with a pop-up about these rules before they waste a lot of time having to re-do everything from scrath. I was lucky enough to have an export of all users.
    If these rules are followed from the begining, DNS would auto-configure itself with the appropriate forward & reverse records.

  • What Drivers should I use to access SQL Server 2005 SP2 from Windows Server 2008 64 bit

    and yes I do know that is an odd scenario so let me explain
    I have just joined a project that is "in flight" where the customer is upgrading a LOT of things at the same time
    (some Microsoft, some other supplier: some at the OS level, others at server or services levels)
    the current step is replacing some services leaving the back end databases as they are
    i.e. SQL Server 2005 SP2
    a later step will upgrade the backend data bases which may make more work
    What we have now runs on Windows Server 2003 32 bit using the OLEDB drivers
    version 2000.86.3959.00
    What we want must run on Windows Server 2008 64 bit still using the OLEDB option
    which version should I download & try to install?

    Here are a known list of issues with this configuration with their corresponding workarounds: https://support.microsoft.com/kb/936302/en-us
    Satish Kartan www.sqlfood.com

  • Connecting to 64bit Oracle 11g  from 32bit Client on Windows 7 64bit OS.

    Hi All,
    We have installed Oracle 11g 64 bit on a Windows 7 64 bit system. As we need to run some 32 bit application on the system, We installed 32 bit client and try to configured Local Net Service Name Configuration using Oracle Net Configuration Assistant and during test, it is unable to connect and giving the following error.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Best Regards
    Fred

    user13144834 wrote:
    Hi All,
    We have installed Oracle 11g 64 bit on a Windows 7 64 bit system. As we need to run some 32 bit application on the system, We installed 32 bit client and try to configured Local Net Service Name Configuration using Oracle Net Configuration Assistant and during test, it is unable to connect and giving the following error.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Best Regards
    Fred=================================
    A couple of important points.
    First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
    Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
    Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
    Assume you have the following in your tnsnames.ora:
    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
      )Now, when you issue a connect, say like this:
    $> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
    Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
    Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
    What can go wrong?
    First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
    Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
    Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
    Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
    Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
    Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
    Now, when you issue a connect, say like this:
    $> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
    $> export ORACLE_SID=fred
    $> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
    check executing instances to get the SID
    [oracle@vmlnx01 ~]$ ps -ef|rgrep pmon
    oracle    4236     1  0 10:30 ?        00:00:00 ora_pmon_vlnxora1
    oracle    4878  4854  0 10:42 pts/0    00:00:00 grep pmonset ORACLE_SID appropriately, and connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
    SQL> exit
    [oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
    [oracle@vmlnx01 ~]$ SQLPsqlplus scott/tigere
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Enter user-name: Now set ORACLE_SID to null, and try to connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID=
    [oracle@vmlnx01 ~]$ SQLsqlplus /scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified=====================================

  • Need to communicate c server on linux & java client on windows

    Hi!! I am new to socket programing in both C and Java.
    From let I downloaded some client server example for c and java and tried that to link !! (I allways learn this way , and I need to do that little urget )
    though cient server in linux is working perfectly fine and same for java. But problem is when I tried to communicate C server on linux and java client on windows, I end up with getting some junk characters. Though they are connected successfully.
    Here goes code for java client:
    package whatever;
    import java.io.*;
    import java.net.*;
    public class Requester{
         Socket requestSocket;
         ObjectOutputStream out;
         ObjectInputStream in;
         String message;
         Requester(){}
         void run()
              try{
                   //1. creating a socket to connect to the server
                   requestSocket = new Socket("192.168.72.128", 2006);
                   System.out.println("Connected to localhost in port 2004");
                   //2. get Input and Output streams
                   out = new ObjectOutputStream(requestSocket.getOutputStream());
                   out.flush();
                   in = new ObjectInputStream(requestSocket.getInputStream());
                   System.out.println("above do");
                   //3: Communicating with the server
                   do{
                        try{
                             System.out.println("in do");
                             //message = (String)in.readObject();
                             System.out.println("in try");
                             //System.out.println("server>" + message);
                             System.out.println("server>" + "message");
                             sendMessage("Hi my server");
                             message = "bye";
                             sendMessage(message);
                             System.out.println("try completed");
                        catch(Exception e){
                             e.printStackTrace();
                   }while(!message.equals("bye"));
              catch(UnknownHostException unknownHost){
                   System.err.println("You are trying to connect to an unknown host!");
              catch(IOException ioException){
                   ioException.printStackTrace();
              finally{
                   //4: Closing connection
                   try{
                        in.close();
                        out.close();
                        requestSocket.close();
                   catch(IOException ioException){
                        ioException.printStackTrace();
         void sendMessage(String msg)
              try{
                   String stringToConvert= "hello world";
                   byte[] theByteArray = stringToConvert.getBytes();
                      System.out.println(theByteArray.length);
                   out.writeObject(theByteArray);
                   out.flush();
                   System.out.println("client>" + msg);
              catch(IOException ioException){
                   ioException.printStackTrace();
              catch(Exception ex){
                   ex.printStackTrace();
         public static void main(String args[])
              Requester client = new Requester();
              client.run();
    And for C server
    / server
        #include <stdio.h>
            #include <sys/socket.h>
            #include <arpa/inet.h>
            #include <stdlib.h>
            #include <string.h>
            #include <unistd.h>
            #include <netinet/in.h>
            #define MAXPENDING 5    /* Max connection requests */
            #define BUFFSIZE 32
            void Die(char *mess) { perror(mess); exit(1); }
        void HandleClient(int sock) {
                char buffer[BUFFSIZE];
                int received = -1;
                /* Receive message */
                if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                    Die("Failed to receive initial bytes from client");
                /* Send bytes and check for more incoming data in loop */
                while (received > 0) {
                /* Send back received data */
                    if (send(sock, buffer, received, 0) != received) {
                        Die("Failed to send bytes to client");
    //            fprintf("%s",buffer);
                fprintf(stdout, "message Recieved: %s\n", buffer);
                    //Die("was not able to echo socket message");               
                /* Check for more data */
                    if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                        Die("Failed to receive additional bytes from client");
                close(sock);
        //     A TCP ECHO SERVER
        int main(int argc, char *argv[]) {
                int serversock, clientsock;
                    struct sockaddr_in echoserver, echoclient;
                    if (argc != 2) {
                      fprintf(stderr, "USAGE: echoserver <port>\n");
                    exit(1);
                /* Create the TCP socket */
                    if ((serversock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
                      Die("Failed to create socket");
                /* Construct the server sockaddr_in structure */
                    memset(&echoserver, 0, sizeof(echoserver));      /* Clear struct */
                    echoserver.sin_family = AF_INET;                  /* Internet/IP */
                    echoserver.sin_addr.s_addr = htonl(INADDR_ANY);  /* Incoming addr */
                    echoserver.sin_port = htons(atoi(argv[1]));      /* server port */
        // A TCP ECHO SERVER ENDS
        // A TCP ECHO SERVER BINDING AND LISTNING
      /* Bind the server socket */
                  if (bind(serversock, (struct sockaddr *) &echoserver, sizeof(echoserver)) < 0) {
                        Die("Failed to bind the server socket");
              /* Listen on the server socket */
                  if (listen(serversock, MAXPENDING) < 0) {
                  Die("Failed to listen on server socket");
        // A TCP ECHO SERVER BINDING AND LISTNING
        // SOCKET FACTORY
    /* Run until cancelled */
                while (1) {
                        unsigned int clientlen = sizeof(echoclient);
                          /* Wait for client connection */
                        if ((clientsock =
                          accept(serversock, (struct sockaddr *) &echoclient, &clientlen)) < 0) {
                            Die("Failed to accept client connection");
                          fprintf(stdout, "Client connected: %s\n", inet_ntoa(echoclient.sin_addr));
                          HandleClient(clientsock);
        // SOCKET FACTORY ENDSI know that it is not C forum but I found no better place to post it
    Thanks

    kajbj wrote:
    ManMohanVyas wrote:
    hii!! just trying to make it a little more explinatory
    1) what I am trying to accomplish by the above code is: - just need to echo/print from the Server , message send by the Client. I know code is not that good but should be able to perform this basic operation( according to me ).You are wrong. I told you that it won't work as long as you are using ObjectOutputStream and ObjectInputStream. You shouldn't write objects.
    2) Message sent by the client is "hello world"(hard coded).No, it's not. You are writing a serialized byte array.
    3) what I am getting at the client end is "*message recieved: ur*" (before that It shows the Ip of client machine)
    It should print "hello world ".See above.
    You are having a problem, and I have told you what the problem is.hey I dont know what went wrong but . I posted all this just next to my first post ...before you posted !!
    And hard coded byte array includes "hello world"...may be I am not able to explain properly.

  • Oracle ODBC driver for Linux from NT

    I'm using Oracle v8.0.5 on Linux (trial version)
    and I would like to access/see/edit the database(s) from WinNT.
    Is there a driver out there for this??
    thanx in advance!
    null

    Eddy Hahn (guest) wrote:
    : Daryll (guest) wrote:
    : : I'm using Oracle v8.0.5 on Linux (trial version)
    : : and I would like to access/see/edit the database(s) from
    WinNT.
    : : Is there a driver out there for this??
    : : thanx in advance!
    : You can use regular NT ODBC driver to access Oracle on Linux.
    : Just use Net8 Assist or Net8 Easy Config to set it up (on NT).
    : Eddy
    Oracle 8.0.5 on Linux don't come with Windows 95/98/NT client. I
    need to access the Oracle on Linux from Delphi 4 on Windows 98
    but I don3t know where to get the Oracle client. Do you know
    where I can get the Oracle client for Windows 98 ? I couldn't
    find in the Oracle's pages on the Web.
    Halley
    null

Maybe you are looking for