![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|