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
SHUTDOWN(2)						      BSD System Calls Manual						       SHUTDOWN(2)

NAME
shutdown -- shut down part of a full-duplex connection SYNOPSIS
#include <sys/socket.h> int shutdown(int socket, int how); DESCRIPTION
The shutdown() call causes all or part of a full-duplex connection on the socket associated with socket to be shut down. If how is SHUT_RD, further receives will be disallowed. If how is SHUT_WR, further sends will be disallowed. If how is SHUT_RDWR, further sends and receives will be disallowed. RETURN VALUES
The shutdown() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi- cate the error. ERRORS
The call succeeds unless: [EBADF] Socket is not a valid descriptor. [EINVAL] The how argument is invalid. [ENOTCONN] The specified socket is not connected. [ENOTSOCK] Socket is a file, not a socket. SEE ALSO
connect(2), connectx(2), disconnectx(2), socket(2) HISTORY
The shutdown() function call appeared in 4.2BSD. 4.2 Berkeley Distribution March 18, 2015 4.2 Berkeley Distribution