Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pvmfsetsbuf(3pvm) [redhat man page]

SETSBUF(3PVM)							  PVM Version 3.4						     SETSBUF(3PVM)

NAME
pvm_setsbuf - Switches the active send buffer. SYNOPSIS
C int oldbuf = pvm_setsbuf( int bufid ) Fortran call pvmfsetsbuf( bufid, oldbuf ) PARAMETERS
bufid Integer the message buffer identifier for the new active send buffer. A value of 0 indicates the default receive buffer. oldbuf Integer returning the message buffer identifier for the previous active send buffer. DESCRIPTION
The routine pvm_setsbuf switches the active send buffer to bufid and saves the previous active send buffer oldbuf. If bufid is set to 0 then the present active send buffer is saved and no active send buffer exists. The routine is required when managing multiple message buffers. For example switching back and forth between two buffers. One buffer could be used to send information to a graphical interface while a second buffer could be used send data to other tasks in the application. EXAMPLES
C: sbuf1 = pvm_setsbuf( sbuf2 ); Fortran: CALL PVMFSETSBUF( NEWBUF, OLDBUF ) ERRORS
These error conditions can be returned by pvm_setsbuf PvmBadParam giving an invalid bufid. PvmNoSuchBuf switching to a non-existent message buffer. SEE ALSO
pvm_setrbuf(3PVM) 30 August, 1993 SETSBUF(3PVM)

Check Out this Related Man Page

SETRBUF(3PVM)							  PVM Version 3.4						     SETRBUF(3PVM)

NAME
pvm_setrbuf - Switches the active receive buffer and saves the previous buffer. SYNOPSIS
C int oldbuf = pvm_setrbuf( int bufid ) Fortran call pvmfsetrbuf( bufid, oldbuf ) PARAMETERS
bufid Integer specifying the message buffer identifier for the new active receive buffer. oldbuf Integer returning the message buffer identifier for the previous active receive buffer. DESCRIPTION
The routine pvm_setrbuf switches the active receive buffer to bufid and saves the previous active receive buffer oldbuf. If bufid is set to 0 then the present active receive buffer is saved and no active receive buffer exists. A successful receive automatically creates a new active receive buffer. If a previous receive has not been unpacked and needs to be saved for later, then the previous bufid can be saved and reset later to the active buffer for unpacking. The routine is required when managing multiple message buffers. For example switching back and forth between two buffers. One buffer could be used to send information to a graphical interface while a second buffer could be used send data to other tasks in the application. EXAMPLES
C: rbuf1 = pvm_setrbuf( rbuf2 ); Fortran: CALL PVMFSETRBUF( NEWBUF, OLDBUF ) ERRORS
These error conditions can be returned by pvm_setrbuf PvmBadParam giving an invalid bufid. PvmNoSuchBuf switching to a non-existent message buffer. SEE ALSO
pvm_setsbuf(3PVM) 30 August, 1993 SETRBUF(3PVM)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

active machine

HI can any one please tell me how to find the active machine in active/standby architecture , (0 Replies)
Discussion started by: Raom
0 Replies

2. UNIX for Dummies Questions & Answers

How to display first 7 char of grep results?

My file contains the following: uat2000.aspclient.active=true uat2001.aspclient.active=true uat2002.aspclient.active=true uat2003.aspclient.active=true uat2004.aspclient.active=false uat2005.aspclient.active=false uat2006.aspclient.active=false uat2007.aspclient.active=false... (8 Replies)
Discussion started by: kthatch
8 Replies

3. UNIX for Advanced & Expert Users

To send a message to another system

How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies

4. Shell Programming and Scripting

Using sed buffer

Hi. I have some questions about using sed. I cannot use the hold buffer. For example i want to put first line to the buffer than take second line and append the buffer to the second line.then 3th to the all. It will be like 2->1->3 th lines. Any idea? (1 Reply)
Discussion started by: burakkilic
1 Replies

5. Programming

Multiple send()'s

Hi guys I'm quite new to socket programming. I'm using Beej's guide. I have a program that requests a html page and downloads it one character at a time stopping when it reaches an EOF. I do this with the send() and recv() functions. When I'm finished I use send() again to get another page but... (1 Reply)
Discussion started by: seanword
1 Replies

6. UNIX for Dummies Questions & Answers

setup active directory

i would like to ask about unix with active directory..actually my situation is at ny place there already have dns server in unix based,i want to implement an active directory to the network..from what i read about active directory we have to used bind dns...some say that bind could not handle in... (1 Reply)
Discussion started by: nour
1 Replies

7. UNIX for Dummies Questions & Answers

active working

hi! i want to create a list of the active working of the system classified by size and run the list on the monitor in a contolled pattern.Every active work has to appear only once. Any suggestions? also how can i create a list of the active working that does not belong to the user root?thanks (5 Replies)
Discussion started by: battaglia
5 Replies

8. Programming

Send/Receive buffer size??

Dear friends, How do I find the TCP send and receive buffer size? (1 Reply)
Discussion started by: nagalenoj
1 Replies

9. Shell Programming and Scripting

expect_out(buffer) empty

I have only some info into my buffer, but after a rssi command I see the folowing lines expected into buffer but not present : rssi=-106 rssi=-109 I see in my buffer only the first part of the output, here you are a part of script : #!/usr/bin/expect -f #global expect_out match_max 10000000... (1 Reply)
Discussion started by: ugobale
1 Replies

10. What is on Your Mind?

lo!

40 years ago today was the first time that two computers exchanged information using packet switching and telephone lines. While it was only possible to send 2 characters ("lo") before the receiving system crashed, it was a success nonetheless. Just think where we'd be today without someone who... (1 Reply)
Discussion started by: pludi
1 Replies

11. Shell Programming and Scripting

expect_out buffer no such variable running script background

I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out. Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Discussion started by: shellscripter
0 Replies

12. AIX

calculating the size of the luns using script

Hi This is the lspv output of my server : cbspsdb01 #lspv hdisk0 00c7518d2d512fd4 cdgvg active hdisk1 00c7518d2dcbc9d6 cdgvg active hdisk2 00c7518dcda9199a appvg active hdisk3... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

13. AIX

Disk is present but not active

hello, I have an issue with my aix box. the power went down. I got the box back up and can log into it. the datavg drives are not showing as active. How do i make them active. let me know if you need any screenshots let me know. Thanks ---------- Post updated at 09:48 PM ----------... (1 Reply)
Discussion started by: fierfek
1 Replies

14. Shell Programming and Scripting

How to send data to previous program (pipe)?

Hi, Suppose I have a command:$ cmd1 | cmd2I need to send a message from cmd2 to cmd1 when I receive some a certain message from cmd1. How to do this? I think that I have to know cmd1's PID and then in cmd2 send a message to this PID. How? (24 Replies)
Discussion started by: JackK
24 Replies