Sponsored Content
Top Forums Programming Error with socket operation on non-socket Post 302409717 by vin_pll on Friday 2nd of April 2010 07:25:31 AM
Old 04-02-2010
Error with socket operation on non-socket

Dear Experts,

i am compiling my code in suse 4.1 which is compiling fine,

but at runtime it is showing me for socket programming error no 88

as i searched in errno.h it is telling me socket operation on non socket,

what is the meaning of this , how to deal with this error , please inform what causes this error to occur

thanks in advance.

Last edited by pludi; 04-02-2010 at 08:41 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

Socket Programming socket

Hello, I actually try to make client-server program. I'm using SCO OpenServer Release 5.0.0 and when I try to compile my code (by TELNET) I've got this error : I'm just using this simple code : and I get the same error if I use : If someone can help me, Thanks (2 Replies)
Discussion started by: soshell
2 Replies

2. Linux

Socket Error for LAMP on Fedora 7

Hi. um. I'm trying to make a LAMP server on Fedora 7, but When I try to turn Apache/Httpd on, it gives me this error: # chkconfig -- levels 235 httpd on # /etc/init.d/httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address 192.168.1.110.80 no listening... (8 Replies)
Discussion started by: umja345
8 Replies

3. UNIX for Advanced & Expert Users

connect problem for sctp socket (ipv6 socket) - Runtime fail Invalid Arguments

Hi, I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime. To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Discussion started by: chandrutiptur
0 Replies

4. Programming

which socket should socket option on be set

Hi all, On the server side, one socket is used for listening, the others are used for communicating with the client. My question is: if i want to set option for socket, which socket should be set on? If either can be set, what's the different? Again, what's the different if set option... (1 Reply)
Discussion started by: blademan100
1 Replies

5. Solaris

Error message : socket failed...

Dear All, I have server with SunOS 5.10 Generic_127111-06 sun4v sparc SUNW,SPARC-Enterprise-T5120, always coming out error message like this : May 25 10:37:26 sshd: fatal: Read from socket failed: Connection reset by peer So what happend with my server..??? Best Regards Bejo :D (2 Replies)
Discussion started by: mbah_jiman
2 Replies

6. Red Hat

rhn_register A socket error occurred

All, I'm getting the following error while I try to register the server to connect the redhat network for the updates. rhn_register updateLoginInfo() login info rhn_register A socket error occurred: (111, 'Connection refused'), attempt #1 rhn_register A socket error occurred: (111,... (6 Replies)
Discussion started by: s_linux
6 Replies

7. Solaris

Socket Error

Dear All, I am facing a socket error - Connection Refused on Solaris Server 9. Here is the error message ConnectSock("<servername>", <port>, -3) failed Recently we upgraded the CC compiler to 5.8 Sun Studio and from that time i am facing this error. Previously we were using CC... (1 Reply)
Discussion started by: helper
1 Replies

8. Programming

socket function to read a webpage (socket.h)

Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct... #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include... (3 Replies)
Discussion started by: cyler
3 Replies

9. IP Networking

Clarification - Setting socket options at the same time when socket is listening

I need clarification on whether it is okay to set socket options on a listening socket simultaneously when it is being used in an accept() call? Following is the scenario:- -- Task 1 - is executing in a loop - polling a listen socket, lets call it 'fd', (whose file descriptor is global)... (2 Replies)
Discussion started by: jake24
2 Replies

10. Programming

Getting error address already in use in socket programming

Hi , I am getting error in bind function of "Address already in use" even also i have used the setsockopt function in that case . Please help int ret = 0; int listenSock = 0; struct sockaddr_in myAddr; struct sockaddr_in ... (1 Reply)
Discussion started by: vipin auja
1 Replies
SOCKET_STRERROR(3)							 1							SOCKET_STRERROR(3)

socket_strerror - Return a string describing a socket error

SYNOPSIS
string socket_strerror (int $errno) DESCRIPTION
socket_strerror(3) takes as its $errno parameter a socket error code as returned by socket_last_error(3) and returns the corresponding explanatory text. Note Although the error messages generated by the socket extension are in English, the system messages retrieved with this function will appear depending on the current locale ( LC_MESSAGES). PARAMETERS
o $errno - A valid socket error number, likely produced by socket_last_error(3). RETURN VALUES
Returns the error message associated with the $errno parameter. EXAMPLES
Example #1 socket_strerror(3) example <?php if (false == ($socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) { echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . " "; } if (false == (@socket_bind($socket, '127.0.0.1', 80))) { echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($socket)) . " "; } ?> The expected output from the above example (assuming the script is not run with root privileges): socket_bind() failed: reason: Permission denied SEE ALSO
socket_accept(3), socket_bind(3), socket_connect(3), socket_listen(3), socket_create(3). PHP Documentation Group SOCKET_STRERROR(3)
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy