01-24-2002
It could be these possible errors :
Assumption :- ( U r writing Server Module Using Sockets)
1) bind , accepts SSC functions requires one of the parameters as a pointer to struct sockaddr structure. Kindly be sure u r using a structure of said type or else u have to typecast it.
2) I think u r trying to use fflush instead of ffush.
Try these points , u might get ur code sucessfully compiled
10 More Discussions You Might Find Interesting
1. SCO
Hi,
I cannot remote login into my unix sco server, only at the box itself, when I write root to login then enter, it immediately logs in without asking me the password :confused: , at the prompt it gives me this error :
inetd:system defaults databse couldn't be allocated due to : cannot... (6 Replies)
Discussion started by: BAM
6 Replies
2. Shell Programming and Scripting
Hi Engg. ! :mad:
I have a harddisk on which SCO UNIX Open Server was installed. There was some data (in .dbf format) on it. Present condition of HDD is that it is not booting. Now I want to mount this HDD through other HDD on which SCO UNIX Open Server is installed by attaching... (0 Replies)
Discussion started by: Niraj Gopal Sha
0 Replies
3. Filesystems, Disks and Memory
Hello Moto
I hope someone can help
We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers..
a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies
4. Programming
Can I use gcc to compile a piece of c++ code?
Do I need to name the file that contains the code as .cpp? Thank you (14 Replies)
Discussion started by: meili100
14 Replies
5. UNIX for Dummies Questions & Answers
my problem is like this
while ftping locally it works,
but when users from WAN try the ftp services it doesnt comes
the message it displays is as follows "connection closed by remote host "
please help
Thanks (5 Replies)
Discussion started by: Athos19
5 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
This is the first time I have attempted to install SCO UNIX. I have a customer that has requested we install it on a desktop sized machine and they have supplied me with their install CD - "SCO UNIX Release 6.0.0 Base Operating System Install disk CD 1"
I am attempting to install it... (0 Replies)
Discussion started by: Becks
0 Replies
7. SCO
Hi, i'm from Argetina and my english is very poor.
I'm trying to copy disk with sco unix 5.0.5 -60Gb IDE
Disk- (7476, 255, 63) to other disk -IDE 80Gb- and g4u v2.3.
After the copy, i'm trying the 80Gb disk and the roblem is the partition /u/disco is empty.
Note: /u/disco is the... (0 Replies)
Discussion started by: sebpes
0 Replies
8. SCO
Hi i have a problem after boot with N1 disk and putting N2 disk and pressing the enter in this message:Insert N2(filesystem) floppy and press after by this(pressing enter) the system is reboot!! why??? :confused:
my old pc is a Pentium II 333mhz 3gb hd 64mb ram
please help!! :( (3 Replies)
Discussion started by: panos_pit
3 Replies
9. SCO
Hi
I am looking for sco xenix binary compatibility utility "cvtomf",(convert omf object to COFF object)
Would you please help me ?
tnx (3 Replies)
Discussion started by: javad1_maroofi
3 Replies
10. SCO
Hi
I have some sco xenix object, bin and archive files that operate in sco unix 5.0.7.
I know that sco unix kernel can support sco xenix binary. I want to know how can I link xenix and unix archives together? (0 Replies)
Discussion started by: javad1_maroofi
0 Replies
LEARN ABOUT HPUX
getpeername
getpeername(2) System Calls Manual getpeername(2)
NAME
getpeername - get address of connected peer
SYNOPSIS
AF_CCITT Only
UNIX 03 Only (X/Open Sockets)
Obsolescent UNIX 95 Only (X/Open Sockets)
DESCRIPTION
returns the address of the peer socket connected to the socket indicated by s, where s is a socket descriptor. addr points to a socket
address structure in which this address is returned. addrlen points to a variable that should be initialized to indicate the size of the
address structure. On return, the variable contains the actual size of the address returned (in bytes). If addr does not point to enough
space to contain the whole address of the peer, only the first addrlen bytes of the address are returned.
AF_CCITT Only
The addr struct contains the X.25 addressing information of the remote peer socket connected to socket s. However, the field of the addr
struct contains the name of the local X.25 interface through which the call arrived.
X/Open Sockets Compilation Environment
See xopen_networking(7).
RETURN VALUE
Upon successful completion, returns 0; otherwise it returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
s is not a valid file descriptor.
s is a valid file descriptor, but it is not a socket.
The socket is not connected.
No buffer space is available
to perform the operation.
addr or addrlen are not valid pointers.
The socket has been shut down.
The operation was interrupted by a signal.
Application needs to retry the operation to get the address of peer socket.
Not all possible values are documented in this manpage due to dependencies from the underlying protocol modules.
OBSOLESCENCE
Currently, the and types are the same size. This is compatible with the UNIX 95 and UNIX 03 profiles. However, in a future release, might
be a different size. In that case, passing a pointer will evoke compile-time warnings, which must be corrected in order for the applica-
tion to behave correctly. Applications that use now, where appropriate, will avoid such migration problems. On the other hand, applica-
tions that need to be portable to the UNIX 95 profile should follow the X/Open specification (see xopen_networking(7)).
WARNINGS
Linking binary objects compiled to specification and binary objects compiled to specification to the same executable may result in unex-
pected behavior, including application abnormal termination and unexpected socket errors. See xopen_networking(7) for details and remedy.
FUTURE DIRECTION
Currently, the default behavior is the however, it might be changed to in a future release. At that time, any behavior that is incompati-
ble with might be obsoleted. Applications that conform to the X/Open specification now will avoid migration problems (see xopen_network-
ing(7)).
AUTHOR
was developed by HP and the University of California, Berkeley.
SEE ALSO
bind(2), socket(2), getsockname(2), thread_safety(5), inet(7F), xopen_networking(7).
STANDARDS CONFORMANCE
getpeername(2)