The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 Przemek SUN Solaris 4 05-26-2008 12:11 AM
unknown host luft UNIX for Dummies Questions & Answers 3 03-04-2005 02:48 PM
ftp: ftp/tcp: unknown service alisevA3 UNIX for Dummies Questions & Answers 2 11-19-2003 08:04 AM
How do I ftp to an unknown host? AllyJones UNIX for Advanced & Expert Users 3 05-23-2003 04:52 AM
Sysadmin LOGIN msgs for all users kymberm UNIX for Dummies Questions & Answers 5 09-06-2002 02:09 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2005
lenna lenna is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 3
too many msgs (unknown source)

Hi All,

I have a problem that I don't know its source. I got a client - server application (one client only) over TCP. I use berkley socket architecture (i.e. select). I log every msg ID that each side recv/ send. the problem is that each side accept more msgs that I actually send, so that all the data that I send is recieved by both sides but between the 'correct' msgs each side accept 'empty msgs'. I indexed each msgs IDs starting from 100 and on, and the log file do contain all of them but also empty msgs (ID = 0). the log file looks like that:

100
0
101
0
0
102
0

etc.

do anyone knows what could be the reason? I checked the buffer state over the 'wrong msgs' and noticed all cells in buffer contains only '0'. also found out that on these cases bytesCounter equals MSG_LEN, so it looks like some wiered msg is somehow received.

I also checked the send function and noticed it's never being called with any msg whos ID is less than 100 (so it can't explain the ID '0').

in my encode string function (client and server are multi OS so I encode/ decode string) I put '\0' in the end of array. could that be the reason?

any other ideas?
thanks.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0