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 OSX
bindresvport
BINDRESVPORT(3) BSD Library Functions Manual BINDRESVPORT(3)
NAME
bindresvport, bindresvport_sa -- bind a socket to a privileged IP port
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <rpc/rpc.h>
int
bindresvport(int sd, struct sockaddr_in *sin);
int
bindresvport_sa(int sd, struct sockaddr *sa);
DESCRIPTION
The bindresvport() and bindresvport_sa() functions are used to bind a socket descriptor to a privileged IP port, that is, a port number in
the range 0-1023.
If sin is a pointer to a struct sockaddr_in then the appropriate fields in the structure should be defined. Note that sin->sin_family must
be initialized to the address family of the socket, passed by sd. If sin->sin_port is '0' then an anonymous port (in the range 600-1023)
will be chosen, and if bind(2) is successful, the sin->sin_port will be updated to contain the allocated port.
If sin is the NULL pointer, an anonymous port will be allocated (as above). However, there is no way for bindresvport() to return the allo-
cated port in this case.
Only root can bind to a privileged port; this call will fail for any other users.
Function prototype of bindresvport() is biased to AF_INET socket. The bindresvport_sa() function acts exactly the same, with more neutral
function prototype. Note that both functions behave exactly the same, and both support AF_INET6 sockets as well as AF_INET sockets.
RETURN VALUES
The bindresvport() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to
indicate the error.
ERRORS
[EPFNOSUPPORT] If second argument was supplied, and address family did not match between arguments.
The bindresvport() function may also fail and set errno for any of the errors specified for the calls bind(2), getsockopt(2), or
setsockopt(2).
SEE ALSO
bind(2), getsockopt(2), setsockopt(2), ip(4)
BSD
November 22, 1987 BSD