10-30-2012
A common dir means there is only one place to look when woken up to process input. The file name itself can contain unique information like what user sent it and what the sequence number is. A "kill -SIGUSR1 `<pid_file`" can wake up the service.
If you make it a UDP service, the server blocks on the UDP socket waiting for incoming messages, processing them one at a time. They can be queued in the socket buffer, which can be made large enough to deal with the probalbe backlog. The process reading the socket can just log the messages for further processing, so there is no liklihood of a big backlog. The service can frame the bytes in the log into different discussions. Once the log gets to a certain size, it can be rotated out for another. The log could even be a zip file for the day, with each message an archived file in appropriate interanl folder paths. You can glob through zip files as if they were directories with some tools like MS Windows Compressed folders and HXTT JDBC CSV/Text Drivers. UDP also allows for a multicast of messages back to participating users. The size is a bit restricted, not as much as twitter, 65k, but 1,440 is a more reliable size.
This User Gave Thanks to DGPickett For This Post:
6 More Discussions You Might Find Interesting
1. Programming
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
2. IP Networking
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
3. UNIX and Linux Applications
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
4. Programming
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
5. UNIX for Advanced & Expert Users
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
6. Shell Programming and Scripting
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
LEARN ABOUT OPENSOLARIS
dfstab
dfstab(4) File Formats dfstab(4)
NAME
dfstab - file containing commands for sharing resources across a network
DESCRIPTION
dfstab resides in directory /etc/dfs and contains commands for sharing resources across a network. dfstab gives a system administrator a
uniform method of controlling the automatic sharing of local resources.
Each line of the dfstab file consists of a share(1M) command. The dfstab file can be read by the shell to share all resources. System
administrators can also prepare their own shell scripts to execute particular lines from dfstab.
The contents of dfstab put into effect when the command shown below is run. See svcadm(1M).
/usr/sbin/svcadm enable network/nfs/server
SEE ALSO
share(1M), shareall(1M), sharemgr(1M), svcadm(1M)
NOTES
Do not modify this file directly. This file is reconstructed and only maintained for backwards compatibility. Configuration lines could be
lost.
Use the sharemgr(1M) command for all share management.
SunOS 5.11 15 Aug 2008 dfstab(4)