Alternative network messaging?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Alternative network messaging?
# 22  
Old 10-30-2012
Could I make use of xinetd as madiator server in this context?
# 23  
Old 11-01-2012
xinetd/inetd/u_inetd are more tcp related, for independent services, so 1) you would have to worry about parallel operation and 2) the overhead per message is high unless the protocol maintains the connection for many messages.

The beauty of a UDP socket receiver is that one socket on one server serves all clients, first-come, first-served, without locking, accept, fork or connection setup overheads. If you use a broadcast address, you could have parallel servers on every host with a client making a local message log.
This User Gave Thanks to DGPickett For This Post:
# 24  
Old 11-01-2012
Unfortunately, I have to use rcp, but all R-services are TCP-based :-(

If multiple users sent files at the same time, the server would have to provide one socket for each incoming request, which would cause a lot of server load. Maybe I could use only one socket, but with some kind of semaphore?
# 25  
Old 11-01-2012
Well, scp is free, too, and the rcp family is considered a security problem many places.

rcp sends files, so if they wll when to an incoming directory with names that reflected the sender and forward sequential time, the server can process and remove each in about the order they arrived.
Code:
#!/bin/bash
 
cd input_dir
 
while :
do
 
 f=
 
 ls | while read f
 do
  echo "$f: \c"
  cat $f
  rm -f $f
 done >>msg_file.$(date '%Y-%m-%d')
 
 if [ "$f" = "" ]
 then
  sleep 1
 fi
 
done


Last edited by DGPickett; 11-01-2012 at 03:04 PM..
This User Gave Thanks to DGPickett For This Post:
# 26  
Old 11-01-2012
Security isn't so important here, because the whole project is only for learning purposes. I am already happy if I can finish it just in time.

The server forwards the incoming messages, which are stored in a fifo queue. Is it better to store them all in one folder or to have one folder for each user? In my opinion one folder would be enough. rcp/scp can't cause problems in regard to parallel processing?
# 27  
Old 11-01-2012
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

The DT messaging system could not be started.

Good Morning, Users can no longer log into SunBlade 2500 Solaris 9 system (though root still can). Here's what I'm getting and what I've done. I'm most suspicious of the full drive since that pops up twice and I did see one looks full. What's a good way to reduce what's on it?- or.. what else... (2 Replies)
Discussion started by: Stellaman1977
2 Replies

2. UNIX for Advanced & Expert Users

The DT messaging system could not be started

Hello All, I am getting " The DT messaging system could not be started" message when wants to login as root on a box running on tru64 5.1A. /etc/hosts is ok. when i see in .dt/errorlog it shows message server could not be started. Thanks for help. Awadhesh (2 Replies)
Discussion started by: Awadhesh
2 Replies

3. Programming

problems while using messaging queues....

hi I am using posix functions such as mq_open, mq_close and including the mqueue.h. but its giving a linking error,"undefined reference to mq_open and mq_close". it it that we have to link some library or so while compiling... plzzz help Thanxs Mohit (0 Replies)
Discussion started by: mohit3884
0 Replies

4. UNIX and Linux Applications

how do i enable messaging

hi guyz i work as a system administrator for some organization(am a newbie). one of the solaris machines is loaded with the messenger server...all configured by a former administrator. my task was to create user accounts for the mail and calendar services and as i checked its not working .....i... (0 Replies)
Discussion started by: henokia4j
0 Replies

5. IP Networking

DT messaging could not be started

this id the message i get with a suggestions to check those files: /etc/src.sh /etc/hosts /usr/adm/inetd.sec i have little knowledge of hoe to edit those files/ i went to the etc library and didn't found src.sh file. what should i do? also didn't find the inetd.sec file In the host... (3 Replies)
Discussion started by: amirp
3 Replies

6. Programming

Instant Messaging App Help

I was hoping someone could assist me on a text-based instant messaging client(using UDP) I am working on. I have the network communication basics already in place but, specifically, needed some further help on the "messaging other users" and "getting a user list" functions. The server code that... (0 Replies)
Discussion started by: AusTex
0 Replies
Login or Register to Ask a Question