Socket Handling Differences Between Linux & Unix?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Socket Handling Differences Between Linux & Unix?
# 1  
Old 07-29-2008
Socket Handling Differences Between Linux & Unix?

Sorry if this is a stupid question!

I have been developing a Java application that I am deploying on both Unix and Linux servers, which uses lots of socket handling. When the server side connection is dropped by the server un-gracefully I have been seeing close_waits and null connections.

I am working through socket handling and fixing problems as I go, but my question is:

Do I need to re-test everything on both Linux and Unix, or is the socket handling identical between the 2? i.e. if I complete all testing on Linux, can I release the applicaion on Unix with 100% confidence that there are no underlying socket handling differences that could cause close_wait or null connection problems later?

Unix = HP-UX 11i
Linux = RH4

Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Installing Unix & Linux

Hi, I am a newbie to Unix/Linux and I have always been fascinated by them. I just need information on how I can install a Unix/Linux operating system on an Acer Laptop that previously had a Windows XP OS installed. Any hints or suggestions would be appreciated. (1 Reply)
Discussion started by: Pitsmero
1 Replies

2. Shell Programming and Scripting

Problem with call of Java Programm & return code handling & output to several streams.

Hello Everybody, thanks in advance for spending some time in my problem. My problem is this: I want to call a java-Programm out of my shell skript, check if die return code is right, and split the output to the normal output and into a file. The following code doesn't work right, because in... (2 Replies)
Discussion started by: danifunny
2 Replies

3. Shell Programming and Scripting

differences in linux and unix shell

hi all, can any one plz tell me that what is the difference between linux shell scripting and unix shell scripting. is there any difference at all?? if yes that what are the differences and how could it be combatted thanks in advance (1 Reply)
Discussion started by: nasir_khan
1 Replies

4. UNIX for Advanced & Expert Users

Unix: socket & Co

Hello, I need help to replace the ................. of client.c that request the server implemented by server.c ------------------ Listing 1 - server.c /* Inclusion des différentes librairies nécessaires */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> ... (0 Replies)
Discussion started by: bounkolh
0 Replies

5. Programming

C program in Unix / Linux - Time differences

Hi Friends, When Iam running c program in redhat linux 7.3 version and PCQ Linux 8.0 version, its taking around 20 seconds. But when Iam running it in HP-UX Release 11i, its taking around 3 minutes. Can anyone throw light on this. Thanks in advance, Praveen. (11 Replies)
Discussion started by: chprvkmr
11 Replies

6. HP-UX

Socket implementation differences

Hi Can anybody tell what are the socket implementation differences between hp 10.x and Solaris 9? Does this affect the application (any) when I migrate from Hp to Solaris? Charles C. (3 Replies)
Discussion started by: charlcy
3 Replies

7. UNIX for Advanced & Expert Users

What is the difference between Unix & linux

:confused: Hi All Can anyone help me in finding the answer of the question mentioned below. What is the difference between Unix & linux ? Thanks in Advance to all CSaha (1 Reply)
Discussion started by: csaha
1 Replies

8. UNIX Desktop Questions & Answers

what is the difference between Unix & linux, what are the advantages & disadvantages

ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies

9. UNIX for Dummies Questions & Answers

Are Unix & Linux the Same ?

Well i have downloaded some Linux stuff and isos but before i install i really like to know what is the diffirence and i like to install apache webserver , can it be done on Linux ? I am a real Dummy but after some practice i will be a PRO :-) Thanks for all the replies .. (1 Reply)
Discussion started by: zodiac
1 Replies
Login or Register to Ask a Question
cyclades-ser-cli(8)													       cyclades-ser-cli(8)

NAME
cyclades-ser-cli Serial Port Interface for Cyclades Terminal Servers SYNOPSIS
cyclades-ser-cli [options] devname rasname physport DESCRIPTION
The cyclades-ser-cli program connects a Unix device file 'devname' to a physical port 'physport' of a Cyclades Terminal Server 'rasname'. cyclades-ser-cli provides the I/O interface between the device file and the physical port, running as an 'user-mode device driver'. If 'physport' is assigned to 0, then 'rasname' is used as the IP address on an IP-based serial port addressing. OPTIONS
cyclades-ser-cli may be started with the following options: -u ptyiosize Sets the internal device I/O size to ptyiosize (maximum 4096 bytes, default 1024 bytes) -n netiosize Sets the internal socket I/O size to netiosize (maximum 512 bytes, default 128 bytes) -i retrydelay Delay in seconds between connection requests (default: 60) -r retries Number of connection request retries before exiting. (default: infinity) -s Use the Socket Server protocol for talking to the server, this means just piping all the data down a TCP connection with no control information, so it's impossible to change the port speed etc. The default is to use the RFC2217 protocol. -m modem handling The default is 0 which means to check DCD state, 1 means to ignore DCD. -c close mode Last close handling; the default is 0 which means to hangup the modem, 1 means not to hangup. -p start port TCP base port of servers at terminal server side (defaults: 31000 for Socket server, 30000 for Remote Telnet Server). Note: if 'physport' is assigned to zero, this option has no effect, the Telnet Server standard port (23) is used. -d debug level The default is debug level 0 (little debugging), level 1 debugs internal state changes, level 2 debugs events, and level 3 debugs IO calls. -f Run in foreground, this is suitable for running from init. -x Console mode: normally all messages are sent to syslogd (using local2 facility). With this option, all messages will be sent to std- out and cyclades-ser-cli runs in the foreground. This implies -f USE
Every instance of cyclades-ser-cli will have a virtual serial device which is a sym-link to a pseudo-tty. A terminal program can then talk to the virtual serial device and it's data transfers will be redirected across the network. Each virtual serial device will be accompanied by a Unix domain socket with the same name with the addition of ".control". So if cyclades-ser-cli provides the virtual device named "/dev/modem" then it will have a control socket named "/dev/modem.control". There is a shared object named libcyclades-ser-cli.so which intercepts calls to the tcsetattr() and tcsendbreak(). This shared object then sends the relevant data to the cyclades-ser-cli server via the control socket. To recognise a virtual modem device it has to read /etc/cyclades-devices. The libcyclades-ser-cli.so shared object can be loaded per-application through the LD_PRELOAD environment variable, or for the entire sys- tem through the system shared object configuration (see the OS documentation). Note that the LD_PRELOAD environment variable has to have the fully qualified path of the object, otherwise an application which changes it's current directory may fail. BUGS
In Solaris libcyclades-ser-cli.so does not work with the stty program. stty uses a different interface to this and requires some extra coding. In Solaris libcyclades-ser-cli.so conflicts with some system programs such as ps for unknown reasons. Just don't load it for those pro- grams, it has no such problems with any serial comms programs. EXAMPLES
Start an interface between /dev/prt1 device and a serial port number 10 of a Terminal Server named pr01, without hangup at last close: cyclades-ser-cli -c 1 /dev/prt1 pr01 10 In general use do not start cyclades-ser-cli from the command line, start it through the cyclades-serial-client script or from init. SEE ALSO
cyclades-serial-client(1), cyclades-devices(5) cyclades-ser-cli(8)