too many msgs (unknown source)


 
Thread Tools Search this Thread
Special Forums IP Networking too many msgs (unknown source)
# 1  
Old 07-16-2005
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I/O Redirection: how can I redirect error msgs to a temp file

Hi there, I just want to know how can I redirect error msgs returned from running a command (e.g. nslookup) and then only print out the correct output using an if statement?. I've tried the following: where $a is a list of IPs. but I got all the error msgs printed out to screen and... (9 Replies)
Discussion started by: Abdulelah
9 Replies

2. UNIX for Advanced & Expert Users

Forwarding syslog msgs to remote server non standard port

Hello Forumers! Has anyone successfully implemented forwarding of syslog messages to a remote server which is listening on a port other than udp514? Thanks! (3 Replies)
Discussion started by: bluescreen
3 Replies

3. Shell Programming and Scripting

Mail cleanup from ksh script, keeping 50 most recent msgs

I found some posts describing how to completely clean out a mailbox in Unix/Linux. But I want to keep the 50 most recent messages. Any ideas out there? Thanks! (3 Replies)
Discussion started by: OPTIMUS_prime
3 Replies

4. Shell Programming and Scripting

Problem in redirecting ftp msgs to a log file

Hi all.. The following set of statements is used in a shell script to ftp a file to a remote machine I want to redirect the ftp messages thrown by the first ftp statement to a log file. As you can see there is a logic downstream to decide if the ftp was a success or not. But i am not... (5 Replies)
Discussion started by: hareeshkumaru
5 Replies

5. Shell Programming and Scripting

Moving msgs in pine

hey im writing a script like this: #!/bin/bash #Name: moveMail #Purpose: To move some files in the pine inbox to a folder on the desktop #Step one: Find all messages with that have the subject "Hello" in them. #---------------------------------------------------------------------... (1 Reply)
Discussion started by: oxoxo
1 Replies

6. Solaris

troubleshooting log detailing symptoms/error msgs/fix actions for NIS+ client authent

summary found at bottom. to skip straight to action summary, ctrl+f for <summary> this initially started with trouble changing passwords due to client being unable to authenticate, this was further caused by missing client files. This was transparent to me, so this details the road I took,... (0 Replies)
Discussion started by: ProGrammar
0 Replies

7. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

8. UNIX for Dummies Questions & Answers

unknown host

Hello all I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives. I've been a UNIX programmer for a while now but new to administration. I just installed SunOS 5.9 on my desktop ( i86pc) . Everything... (3 Replies)
Discussion started by: luft
3 Replies

9. UNIX for Dummies Questions & Answers

Sysadmin LOGIN msgs for all users

Is there a way, as sysadmin, to put out system msgs, ie scheduled downtime, backup info, etc, whenever users log in? (5 Replies)
Discussion started by: kymberm
5 Replies
Login or Register to Ask a Question
muroard(1)						   System User's Manual: muroard						muroard(1)

NAME
muroard - minimalist sound server for the RoarAudio protocol SYNOPSIS
muroard [OPTIONS]... DESCRIPTION
muRoarD is a sound server supporting the RoarAudio protocol. It is designed to mix the audio data of multiple applications together to send it as a single stream to the soundcard. muRoarD is a minimalist version of such a sound server. It does only implement the very minimum part the the protocol but is very much smaller than the original roard. MISC OPTIONS
-h --help Print a short help and exit. --version Print version information of the daemon and exit. --daemon Bring the server into background after init. On win32 this hides the console window. This only works if used within a Shortcut. --autostandby Start in autostandby mode. --no-autostandby Do not start in autostandby mode. --standby Start in standby mode. --no-standby Do not start in standby mode. AUDIO OPTIONS
-R --rate RATE Set server sample rate. -C --chans CHANNELS Set server number of channels channels. DRIVER OPTIONS
-O --odevice DEV Set output device (sound card). The possible values of this depend on the used driver. SOURCES OPTIONS
-S DEV Set the file or device for the new source. -sC CHANS Sets the number of channels for the source. This is the same as '-sO channels=XXX' for roard. -sB BITS Sets the number of bits for the source. This is the same as '-sO bits=XXX' for roard. -sE CODEC Sets codec for the source. This is the same as '-sO codec=XXX' for roard. NETWORK OPTIONS
--no-listen Disable listen socket. This may be used for example to implement the server type '+fork' but is absolutly useless for normal users. --client-fh FH Add a client via FH. See --no-listen. --bind ADDR Set path/hostname of listen socket. This may be a /path/to/sock for UNIX Sockets or a hostname or address for TCP/IP. Please do not use IP Addresses directly if not needed. Use hostnames. On win32 there is no support for UNIX sockets. Only IP is supported. --port PORT Set port of listen socket. This only applys for TCP/IP sockets and is ignorged for UNIX Sockets. -u --unix Use UNIX Domain listen socket. This is not supported on win32. -t --tcp Use TCP/IP listen socket. -n --decnet Use DECnet listen socket. SEE ALSO
muroarstream(1), RoarAudio(7). HISTORY
The first offical version of muRoarD (0.1beta0) was released on Wed Mar 03 2010 24:26 CET. For more information please see the file ChangeLog. RoarAudio March 2010 muroard(1)