Thread: clients and servers in diff OS

  1. #1
    Registered User
    Join Date
    Sep 2006

    clients and servers in diff OS

    I have a server written in C and its listing on a port (I checked it with netstat and going step by step in my server code) . and there is a client writtten in Java which run on a windows machine my server runs on a Linux machine.

    my question is can there be any complication when these 2 try to talk. the server basically writes some data when a client connects. (when I ran these 2 always the Java client complained "connection refused")

  2. #2
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Still in the egg
    Well, the language they speak is TCP/IP,so the programing language is not important. Check your client/server codes. There must be something wrong with your code.

    You can examine your outgoing data by using some network sniffers (like tcpdump or ethereal).So, you will be able to if there are some extra unwanted characters in your data.
    Last edited by fnoyan; 09-11-2006 at 07:07 AM.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    TCP/IP is a protocol / transport. It doesn't give a damn about the languages or operating systems or hardware at either end of the link.

    If both implement the protocol correctly, then they'll talk just fine - like the rest of the web does.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. establishing a local area network (two servers and clients)
    By shrijeetp in forum Networking/Device Communication
    Replies: 3
    Last Post: 09-10-2005, 06:17 AM