clients and servers in diff OS

This is a discussion on clients and servers in diff OS within the C Programming forums, part of the General Programming Boards category; I have a server written in C and its listing on a port (I checked it with netstat and going ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    11

    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
    Location
    Still in the egg
    Posts
    269
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21