Server Client Issues

This is a discussion on Server Client Issues within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, I made a server client. My problem is I can connect and send and recv packets to my server ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    110

    Server Client Issues

    Hi, I made a server client.

    My problem is I can connect and send and recv packets to my server on the same comp. I sent my client to my friend. On my server it says he is connected. He doesnt recv any packets but is still connected. I know this because when he closes the app my server says he is now disconnected. Anyone know how I can figure this out?

    Hes running windows 98 and Im on XP

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Well we dont have much to go on here. If he is successfully connecting, then there is no reason why he wouldnt be able to send/receive packets. There might be something fishy in your code which might cause the problems you are having, but I can't think of a network issue.

    The first thing I would do is double check the return values of all your socket calls like connect(), send(), recv(), accept(), etc. Make sure you are quiting on an error instead of moving on to the next function call.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 10:54 PM
  2. Client works on a LAN but don't send all the data
    By Niara in forum Networking/Device Communication
    Replies: 9
    Last Post: 01-04-2007, 04:44 PM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 08:04 PM
  4. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 08:26 AM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 02:54 PM

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