Where is the unix manual ?

J

Joe Green

When I do a:

import socket
print socket.socket().recv.__doc__

it tells me to look in the Unix manual. What is it on about, and is this
manual online?
I am generally struggeling with the documentation for socket, I want to do
RAW
sockets, but I can't find anything on it (I know IP, but not UNIX).
 
J

Jarek Zgoda

Joe Green said:
import socket
print socket.socket().recv.__doc__

it tells me to look in the Unix manual. What is it on about, and is this
manual online?

Yes, just type "man 2 socket" or "man 2 recv" in your shell.

#v+
SOCKET(2) Linux Programmer's Manual SOCKET(2)

NAME
socket - create an endpoint for communication

SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>

int socket(int domain, int type, int protocol);

DESCRIPTION
Socket creates an endpoint for communication and returns a descriptor.
#v-

And so on...
 
G

Gerrit Holl

Jarek said:
#v+ (...)
#v-

Just curious. What does "#v+" mean and where does it come from? I tried
googling but it is something very difficult to google for. I take it it
means "begin data", "end data", but where does it come from?

yours,
Gerrit.
 
?

=?ISO-8859-1?Q?Gerhard_H=E4ring?=

Gerrit said:
Just curious. What does "#v+" mean and where does it come from? I tried
googling but it is something very difficult to google for. I take it it
means "begin data", "end data", but where does it come from?

Sections marked with #v+ ... #v- are displayed specially in certain
newsreaders such as slrn, to distinguish program code from the rest of
the message.

-- Gerhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top