10 More Discussions You Might Find Interesting
1. Programming
Hello,
Could you please tell me if there are any books/tutorial on
gdbm programming with C for beginners.
So far, I've found few tutorials and one of those:
http://www.network-theory.co.uk/docs/gccintro/gccintro_22.html
is easy to understand but very short in treatment as it dealt with ... (6 Replies)
Discussion started by: vectrum
6 Replies
2. IP Networking
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
3. Programming
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... (1 Reply)
Discussion started by: vin_pll
1 Replies
4. Programming
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
5. Programming
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
6. UNIX for Advanced & Expert Users
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
7. IP Networking
Please need to setup a IP Socket on SCO Open Server 5.06 / 5.07 to a Linux machine.
Al that I want to do is via a simple shell command open a tcpip address, port number, and send a call to a progam with a name of a file on the linux box.
My programming language does not support socket... (1 Reply)
Discussion started by: comcaps
1 Replies
8. Shell Programming and Scripting
Hello,
I have several handreds of text files. The format of file looks like:
column1 column2 column3 column4 column5
id1 definition1 name1 fieldid comm1
id2 definition2 name2 fieldid ... (4 Replies)
Discussion started by: ssshen
4 Replies
9. Programming
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
10. Shell Programming and Scripting
Can Anyone suggest few good books on Unix Shell Programming and C on Unix.
Thanks
Prasad (5 Replies)
Discussion started by: pswar70
5 Replies
roar_socket_listen(3) System Manager's Manual: RoarAudio roar_socket_listen(3)
NAME
roar_socket_listen - Opens a new listen socket
SYNOPSIS
#include <roaraudio.h>
int roar_socket_listen(int type, char * host, int port);
DESCRIPTION
Opens a new listening socket for network clients to connect to. You may accept new connections via accept(2).
PARAMETERS
type The type of the Socket. See the list below.
host The host or path name to listen on. This depends on the type argument. For TCP/IP to listen on any interface use a value of
"0.0.0.0".
port The port number to listen on. This may be ignored by types not supporting port numbers.
SOCKET TYPES
ROAR_SOCKET_TYPE_UNKNOWN
The type will be auto detected. Don't use this if you know the type. Only use this to support user given addresses and enable auto
detection.
ROAR_SOCKET_TYPE_TCP
Use a TCP/IP connection. This is standard mode for networking. host is the hostname or IP to listen on and port is the port number
to use.
ROAR_SOCKET_TYPE_INET
Same as above but deprecated. Use ROAR_SOCKET_TYPE_TCP.
ROAR_SOCKET_TYPE_UNIX
UNIX Domain Socket. This should be default for local connections. host is the filename of the socket.
ROAR_SOCKET_TYPE_DECNET
DECnet socket.
ROAR_SOCKET_TYPE_FORK
This is to fork a roard to communicate with. Can't be use to listen on, just to connect to. host and port is ignored at the moment.
ROAR_SOCKET_TYPE_FILE
This is used to open a plain file. Can't be use to listen on, just to connect to. host is the filename to connect to.
RETURN VALUE
On success these calls return filehandle. On error, -1 is returned.
BUGS
Listening on UDP sockets is not supported at the moment.
EXAMPLES
FIXME
SEE ALSO
accept(2), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_socket_listen(3)