OneStopFAQs.com - World's Largest Collection of Frequently Asked Questions
Monday, September 1, 2014 Home| Ask Questions| About Us| Feedback| Contact Us|
 Common FAQs  
 Our Services  
FAQs COMPUTERS COMPUTER NETWORK DETAILS
A D V E R T I S E M E N T


Question :
Here is my question: I have a java serversocket application staying on a windows machine, and listening a certain port say 1111. Can I using other window's application (written in Delphi, for example) to connect this java socket and send information to, or receive response from this java application? I tried, however, I can't read anything from a client( written in Delphi).
Category Computer network Interview Questions
Rating (0.3) By 10 users
Added on 4/6/2009
Views 269
Rate it!
Answers:

It shouldn't make a difference what language you write your server/clients in so long as they use TCP/IP sockets. Are you sure that you are not, for example, trying to create a server socket on both ends? One application, your Java one in this example, should open a ServerSocket, and the other a Socket. Are you doing this? The next thing to check is are you definitely not getting any data across or is one or the other simply not recognising the message structure? Are you getting any exceptions thrown (e.g. BindException in Java) that might indicate that the port is in use? Are you specifying the same hostname:port combination in both apps?



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in OneStopFAQs.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    In Java, is there any way of getting all the IP addresses associated with a multi-homed system?
    View Answer
    This doubt has been there in my mind regarding socket-port relationship that whether a port is associated with only one unique socket object or multiple socket objects can be associated with a single port? Any clarification will be greatly appreciated.
    View Answer
    I'm doing this:
    try { InetAddress address = InetAddress.getLocalHost(); String IP = new String (address.getHostAddress()); } catch (Exception e) { e.printStackTrace(); }
    on a linux machine to get the local IP address. The problem is that I got the loopback (127.0.0.1) , but need the address associated with eth0 device.
    What's wrong?
    View Answer
    A SocketChannel that has registered with the Selector showing interest in both OP_READ|OP_WRITE I would expect the select() method to continously return showing that the channel isWritable() until the network write queue fills up (like the select() call in c).

    This is the behavior I see in Linux. However with Windows I see it return once showing isWritable, then it blocks, and does not show isWritable again, even after a isReadable shows up.

    Whats up with this? should this behavior be platform dependent? (I am using the release build 1.4.0-b92).

    e.g. The following code snippet on Linux continously prints out "Got Write" as expected, but on Win32 it prints it once then blocks.

    while(running){
    int n= selector.select();
    System.out.println("Returned from select: " + n);
    Set readyKeys= selector.selectedKeys();

    for(Iterator i= readyKeys.iterator(); i.hasNext();){
    SelectionKey key= (SelectionKey)i.next();
    i.remove();

    if(key.isAcceptable()){
    System.out.println("Got Accept");
    }else{
    if(key.isReadable()){
    System.out.println("Got Read")
    }
    if(key.isWritable()){
    System.out.println("Got Write");
    }
    }
    }
    }

    View Answer
    I want to interrupt an accept()-operation on a ServerSocketChannel with jdk14. But issueing an interrupt() blocks. here is a test program demonstrating this:
    View Answer
    I am using URLConnection to simulate a browser HTTP POST. However, the website (ebay) claims I cannot accept cookies? I have tried setting the "User-Agent", "Referer" fields etc...What am I doing wrong? How do I accept cookies? A code sample would be much appreciated. Thanks! Duke dn415@ucla.edu
    View Answer
    HttpUrlConnection headache and the TIMEOUT I have many links(urls) to be checked for their activeness.

    I want to set a timeout and check whether urls response within the timeout.

    My final goal is to give a result code(1-4) for each and every url that am going to check that is

    1-Unknownhost

    2-timeout occured

    3-URI not found

    4-routing error occured

    how can above be achieved.

    I just tried http://www.innovation.ch/java/HTTPClient but this is not consistent enough.
    View Answer
    Java application can't estabilish network connection, if the connection came up after application start. First I'm running a the java program below with no network connection. While the program running, the network connection came up, but the application can't reach it, why? If i'm running the application with working network connection at start time, everything is ok.
    View Answer
    I'm looking for information on how to write a java program that uses a http url connection object to request data from a servlet... however, I don't want to construct a new tcp/ip connection every time I create a request.

    Can anyone point me to a resource that explains how to do that? I understand that HTTP/1.1 provides for this ability, but I have not found any definative information on how to implement it.
    View Answer
    How can I access an NNTP newsgroup using JSP or Servlets?
    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL Computer network Interview Questions


    Sponsors  

    Google Search

    Google
    Business FAQs, Internet FAQs, Accounts FAQs, Computer FAQs, Insurance FAQs, Frequently Asked Questions & Related Pages


    Arts and Entertainment Frequently Asked Questions | Business Frequently Asked Questions | Computers Frequently Asked Questions | Programming Languages Frequently Asked Questions | Education Frequently Asked Questions | Electronic gadgets Frequently Asked Questions | Health Frequently Asked Questions | People and Relationships Frequently Asked Questions | Food and Cooking Frequently Asked Questions | History Politics and Society Frequently Asked Questions | Home, Farm and Garden Frequently Asked Questions | Insurance Frequently Asked Questions | Jobs & Careers Frequently Asked Questions | Law and Legal Issues Frequently Asked Questions | Money and Credit Frequently Asked Questions | Science and Technology Frequently Asked Questions | Religion and Spirituality Frequently Asked Questions | Shopping Frequently Asked Questions | Sports Frequently Asked Questions | Travels Frequently Asked Questions | Animal Life Frequently Asked Questions | Literature and Language Frequently Asked Questions | Vehicles Frequently Asked Questions | Plants and Trees Frequently Asked Questions | Miscellaneous Frequently Asked Questions | Software Testing Frequently Asked Questions | Electronics Frequently Asked Questions | Certification Frequently Asked Questions | Web Hosting Frequently Asked Questions | SAP Module Frequently Asked Questions | Database Frequently Asked Questions | Operating System Frequently Asked Questions | Soft Skills Frequently Asked Questions | Hobbies and Collectibles Frequently Asked Questions | Humour and Amusement Corner Frequently Asked Questions | Community life and Leisure Frequently Asked Questions | Street Care and Cleaning Frequently Asked Questions | Technology Frequently Asked Questions | Celebrities Frequently Asked Questions | India Information Frequently Asked Questions | Microsoft Frequently Asked Questions | Multimedia Frequently Asked Questions |
    Copyright © 2005-2014. One Stop FAQs.com. All rights reserved Privacy Policy | Terms and Conditions | About Us
    Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Cool Interview | Discussions World | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Indian Free Ads | Freshers & Experienced Jobs | New Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Web Hosting in India | Free SMS | Quick Site Kit | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Testing Interview Questions | Free Online Exam | The Galz | Fun & Entertainment | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World
    Page URL: http://www.onestopfaqs.com/faqs/19658/Default.asp
    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Greetings