Skip to content

Commit

Permalink
Socket option levels implemented
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information
sustrik committed Dec 31, 2012
1 parent 1624a8e commit b6ec18a
Show file tree
Hide file tree
Showing 65 changed files with 722 additions and 124 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,13 @@ add_subdirectory (doc)
# Installation.

install (FILES src/sp.h DESTINATION include/sp)
install (FILES src/inproc.h DESTINATION include/sp)
install (FILES src/ipc.h DESTINATION include/sp)
install (FILES src/tcp.h DESTINATION include/sp)
install (FILES src/pair.h DESTINATION include/sp)
install (FILES src/pubsub.h DESTINATION include/sp)
install (FILES src/reqrep.h DESTINATION include/sp)
install (FILES src/fanin.h DESTINATION include/sp)
install (FILES src/fanout.h DESTINATION include/sp)
install (FILES src/survey.h DESTINATION include/sp)

20 changes: 18 additions & 2 deletions doc/sp_fanin.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_fanin - Fan-in messaging pattern

SYNOPSIS
--------
#include <sp/fanin.h>
*#include <sp/sp.h>*

*#include <sp/fanin.h>*


DESCRIPTION
-----------
Blah-blah.
FANIN pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

20 changes: 18 additions & 2 deletions doc/sp_fanout.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_fanout - Fan-out messaging pattern

SYNOPSIS
--------
#include <sp/fanout.h>
*#include <sp/sp.h>*

*#include <sp/fanout.h>*


DESCRIPTION
-----------
Blah-blah.
FANOUT pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

20 changes: 18 additions & 2 deletions doc/sp_inproc.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_inproc - In-process transport mechanism

SYNOPSIS
--------
#include <sp/inproc.h>
*#include <sp/sp.h>*

*#include <sp/inproc.h>*


DESCRIPTION
-----------
Blah-blah.
In-process transport.


SEE ALSO
--------
linknanomsg:sp_ipc[7]
linknanomsg:sp_tcp[7]
linknanomsg:sp_bind[3]
linknanomsg:sp_connect[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>
20 changes: 18 additions & 2 deletions doc/sp_ipc.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_ipc - Inter-process transport mechanism

SYNOPSIS
--------
#include <sp/ipc.h>
*#include <sp/sp.h>*

*#include <sp/ipc.h>*


DESCRIPTION
-----------
Blah-blah.
Inter-process transport.


SEE ALSO
--------
linknanomsg:sp_inproc[7]
linknanomsg:sp_tcp[7]
linknanomsg:sp_bind[3]
linknanomsg:sp_connect[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>
20 changes: 18 additions & 2 deletions doc/sp_pair.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_pair - one-to-one messaging pattern

SYNOPSIS
--------
#include <sp/pair.h>
*#include <sp/sp.h>*

*#include <sp/pair.h>*


DESCRIPTION
-----------
Blah-blah.
PAIR pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

20 changes: 18 additions & 2 deletions doc/sp_pubsub.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_pubsub - Publish/Subscribe messaging pattern

SYNOPSIS
--------
#include <sp/pubsub.h>
*#include <sp/sp.h>*

*#include <sp/pubsub.h>*


DESCRIPTION
-----------
Blah-blah.
PUBSUB pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

20 changes: 18 additions & 2 deletions doc/sp_reqrep.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_reqrep - Request/Reply messaging pattern

SYNOPSIS
--------
#include <sp/reprep.h>
*#include <sp/sp.h>*

*#include <sp/reprep.h>*


DESCRIPTION
-----------
Blah-blah.
REQREP pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

5 changes: 3 additions & 2 deletions doc/sp_socket.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SYNOPSIS
--------
*#include <sp/sp.h>*

*int sp_socket (int 'domain', int 'protocol');
*int sp_socket (int 'domain', int 'protocol');*


DESCRIPTION
Expand All @@ -33,7 +33,8 @@ protocols to get the list of available socket types.

The newly created socket is initially not associated with any endpoints.
In order to establish a message flow at least one endpoint has to be added
to the socket using _sp_bind()_ or _sp_connect()_ function.
to the socket using linknanomsg:sp_bind[3] or linknanomsg:sp_connect[3]
function.

Note that 'type' argument as found in standard _socket(2)_ function is omitted
from _sp_socket_. All the SP sockets are message-based and thus of
Expand Down
20 changes: 18 additions & 2 deletions doc/sp_survey.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,25 @@ sp_survey - Survey messaging pattern

SYNOPSIS
--------
#include <sp/survey.h>
*#include <sp/sp.h>*

*#include <sp/survey.h>*


DESCRIPTION
-----------
Blah-blah.
SURVEY pattern.


SEE ALSO
--------
linknanomsg:sp_socket[3]
linknanomsg:sp_getsockopt[3]
linknanomsg:sp_setsockopt[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

21 changes: 19 additions & 2 deletions doc/sp_tcp.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ sp_tcp - TCP transport mechanism

SYNOPSIS
--------
#include <sp/tcp.h>
*#include <sp/sp.h>*

*#include <sp/tcp.h>*


DESCRIPTION
-----------
Blah-blah.
TCP transport.


SEE ALSO
--------
linknanomsg:sp_inproc[7]
linknanomsg:sp_ipc[7]
linknanomsg:sp_bind[3]
linknanomsg:sp_connect[3]
linknanomsg:nanomsg[7]


AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>

1 change: 1 addition & 0 deletions perf/inproc_lat.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include "../src/utils/err.c"
#include "../src/utils/thread.c"
Expand Down
1 change: 1 addition & 0 deletions perf/inproc_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include "../src/utils/err.c"
#include "../src/utils/thread.c"
Expand Down
1 change: 1 addition & 0 deletions perf/local_lat.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions perf/local_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions perf/remote_lat.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions perf/remote_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include "../src/sp.h"
#include "../src/pair.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
11 changes: 10 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

add_library (nanomsg SHARED
pattern.h
sp.h
transport.h
pattern.h
inproc.h
ipc.h
tcp.h
pair.h
pubsub.h
reqrep.h
fanin.h
fanout.h
survey.h

core/ctx.h
core/ctx.c
Expand Down
Loading

0 comments on commit b6ec18a

Please sign in to comment.