07-31-2007
There are three basic options.
1. Write a single application and run 32 copies of it (this is the same way getty works)
2. Write a single-threaded application and use 'select' to determine which port is ready to read or write from.
3. Write a multi-threaded application and use either a thread per port, or two threads per port (one for reading, one for writing).
I would recommend option 1 as it's the easiest to write and test.
Option 2 is a more portable solution than 3 as you can avoid multithreading race conditions and synchronisation issues.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I want to write a server application that would accept HTTP requests from client.
The server would be on a machine that has no connection to the INTERNET.
The clients that would be posting their HTTP requests would be doing so through webbrowser .Thus it would be sort of intranet application.... (0 Replies)
Discussion started by: rraajjiibb
0 Replies
2. IP Networking
Hello Mentors!
I am a new here in the furom, i hope somebody can understand my problem.
Basically we have an application here called unigraphics and being installed per station and the setup is look like this.
1. installed unigraphics UGNX3 version on every station
2. some are installed in... (1 Reply)
Discussion started by: eykyn17
1 Replies
3. UNIX for Dummies Questions & Answers
Hello
im using sunos im trying to lock down application that taking my port
when Im doing "netstat -in | grep 8080"
Is gives me the indication that the port is taken but no indication who is taken the port.
How can I find out who is taking my port?
Thanks allot (7 Replies)
Discussion started by: umen
7 Replies
4. Linux
Hi All,
I have two MQ (port) 1414 established (going out)
$ netstat -an | grep 1414
tcp 0 0 0.0.0.0:1414 0.0.0.0:* LISTEN
tcp 0 0 20.76.1.1:32855 142.8.1.3:1414 ESTABLISHED
tcp 0 0... (2 Replies)
Discussion started by: itik
2 Replies
5. Shell Programming and Scripting
Hi,
is there any command to findout that which application is using the particular port.
or whether any port is occupied with the specfic process id ? (4 Replies)
Discussion started by: mail2sant
4 Replies
6. Programming
Hi ,
I need some help as I dont know where to start. I need to create a unix decryption application.
The information I have been given is this so far:
the specification of the encryption process is:
NET 2 Cryptography classes.
RijndaelManaged encryption algorithm
... (13 Replies)
Discussion started by: caciing_help
13 Replies
7. Programming
hey frns pls help me out !!
i hav a code of c that i have to include in my project.
i am using a device (geomeda) that has unix based OS. it also support SIM card for connecting to server . I need to send SMS to user from this device..
below code is not working .. i am unable to send sms and the... (7 Replies)
Discussion started by: yashwantkumar
7 Replies
8. HP-UX
Hi,
I have an application running on HP-UX, from this application I need to findout if the port number. lets say 7890,7891, 7892 are listening on the remote server running on HP-UX.
Is there any way of doing it using "system()" function or any other?
I noticed that nmap, netcat are not... (0 Replies)
Discussion started by: einsteinBrain
0 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I have a code to create folder in application server through shell script and i want to create if conditional based folder
folder=$HOME/test/sample/whatever
if ; then
echo "$folder already exists, not created."
else
mkdir -p "$folder" > /dev/null 2>&1
... (7 Replies)
Discussion started by: Boost
7 Replies
10. Shell Programming and Scripting
Hi Expert,
Anybody can figure it out on how to generate new port base on my last port let say my last port var1=124 and increment for new port 125,126 but this new two ports need to look at first if this port is not in used by any service, if the port is in used add 1 to new port and if in used... (6 Replies)
Discussion started by: lxdorney
6 Replies
LEARN ABOUT SUSE
pilot-read-todos
pilot-read-todos(1) PILOT-LINK pilot-read-todos(1)
NAME
pilot-read-todos - Syncronize your Palm ToDo application's database with your desktop machine.
SECTION
pilot-link: Userland conduits
SYNOPSIS
pilot-read-todos [-p|--port <port>] [-q|--quiet] [-A|--archived] [-w|--write]
pilot-read-todos [-f|--file file] [-A|--archived] [-w|--write]
pilot-read-todos [--version] [-?|--help] [--usage]
DESCRIPTION
pilot-read-todos will read the ToDo database on the Palm handheld, or read the ToDoDB.pdb file directly from disk on your desktop machine,
and print the contents to STDOUT (generally the screen).
Use only one of --port or --file.
OPTIONS
pilot-read-todos option
-f, --file file
Read a local todo database file from disk for printing. Excludes --port.
-A, --archived
Write archived entries only, in human-readable format
-w, --write
Write output - every operation must include a write command.
Conduit Options
-p, --port port
Use device file <port> to communicate with the Palm handheld device. If this is not specified, pilot-read-todos will look for the $PILOT-
PORT environment variable. If neither are found or supplied, pilot-read-todos will print the usage information.
Excludes --file.
-q,
--quiet
Suppress 'Hit HotSync button' message
-v, --version
Display version of pilot-read-todos and exit without connecting.
Help Options
-h, --help
Display the help synopsis for pilot-read-todos and exit without connecting.
--usage
Display a brief usage message and exit without connecting.
USAGE
Connect to a target Palm handheld and read the ToDo database, or read the ToDoDB.pdb file from disk and print the entries found to STDOUT.
EXAMPLES
Read the on-Palm ToDo database, and dump to STDOUT.
pilot-read-todos -w -p /dev/pilot
Read the ToDoDB.pdb file on disk, and dump to STDOUT
pilot-read-todos -w -f ToDoDB.pdb
AUTHOR
pilot-read-todos was originally written by Kenneth Albanowski
BUGS
Known Bugs
pilot-read-todos does not support Notes attached to ToDo items at this time.
Reporting Bugs
We have an online bug tracker. Using this is the only way to ensure that your bugs are recorded and that we can track them until they are
resolved or closed. Reporting bugs via email, while easy, is not very useful in terms of accountability. Please point your browser to
http://bugs.pilot-link.org: http://bugs.pilot-link.org and report your bugs and issues there.
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
SEE ALSO
install-todo (1), install-todos (1), pilot-link(7)
0.12.5 Copyright 1996-2007 FSF pilot-read-todos(1)