Sponsored Content
Top Forums Programming how to clear/clean mbufs (network buffer space)? Post 60555 by bhargav on Tuesday 18th of January 2005 07:30:20 PM
Old 01-18-2005
Is the application faster in the begining and becoming slower ? Do u see symptom like that ?

Quote:
However, in this case, the pointer to a structure has been created (without using malloc() or calloc()) at the beginning of an infinite for(; loop.
If no memory is allocated , the pointer might not be used in your code. Correct ?
Remove the pointer definition in the loop ( i guess it is definition) and see any improvement.

If this does not work , go thru your code where there are instances like this.
 

10 More Discussions You Might Find Interesting

1. Linux

ssh: connect to host traviata port 22: No buffer space available

What does that mean? traviata being my distant host? What am i to do? (0 Replies)
Discussion started by: penguin-friend
0 Replies

2. Shell Programming and Scripting

Space Clean Up Activity In Unix

Hi I am trying to develop a script so that whenever used % reaches 90% it will send an alert mail. Following is the script whic I am tryiing to implement but it show some error. code: #! /bin/ksh df -v | grep -i "/opt" | awk '{print $6}' > space if ] then echo "ALERT YOUR SPACE IS TOO... (6 Replies)
Discussion started by: pankajkrmishra
6 Replies

3. Shell Programming and Scripting

How to get just the word and clean the white space?

Hi, I need to check if the value returned by this query is bigger then 20000. It's not working! I think that the problem is that the return is with white spaces. How to solve this? Tks, Paulo Portugal. ####################### RESPOSTA=`/oracle/app/product/10.2/bin/sqlplus -s <<EOF / as... (2 Replies)
Discussion started by: paulofp
2 Replies

4. Programming

Clear Serial Port Buffer Using iclear, iflush

Hello, I am having trouble clearing the serial port buffer using the iclear and iflush commands. The code runs without errors being returned, but when I check the buffer again there is still data. The only way I have so far is to read until there is nothing left in the buffer. Shouldn't one... (1 Reply)
Discussion started by: sammy-e
1 Replies

5. Shell Programming and Scripting

Clean up the space

Hi I just want to clean up the space in UNIX. Is there any special command that does this process or do I need to manually type the following rm <filename> Any help would be really appreciated. Thanks (2 Replies)
Discussion started by: bobby1015
2 Replies

6. HP-UX

How to clear keyboard buffer

Hi, How can i clear the command. Suppose using esc k i retrieved teh command, but for some reason I want to clear and type fresh one... how can i do that. thx (2 Replies)
Discussion started by: bang_dba
2 Replies

7. AIX

Need to clear the keyboard buffer

I'm running a ksh script that requires user interaction, and said users (myself among them) may get a little trigger happy and get ahead of ourselves and accidentally key in the wrong responses to future prompts in the script. Naturally, I'd like to prevent that, so how does one clear that... (0 Replies)
Discussion started by: Michael Mullig
0 Replies

8. Solaris

How to clear network socket port 17005?

:)Hi Solaris Experts, I am wondering whether it is possible to clear a network socket port 17005 left by Apache Tomcat/6.0.20 after having to terminate it forcefully, since it has run away due to remote JDBC resource contention on another server. A normal Tomcat stop / shutdown proves... (2 Replies)
Discussion started by: gjackson123
2 Replies

9. Programming

How to avoid 'No buffer space available' on C socket?

Hello everybody, Years ago i left in stand-by a project of mine where the main program was supposed to send thousands ARP frames over the socket as fast as it could; but because of a programming issue i couldn't continue it. 2 days ago I decided to solve that issue. The thing is, when the... (4 Replies)
Discussion started by: Zykl0n-B
4 Replies

10. Programming

Clear standard input buffer for C program in Linux

Hello friends! i am writing a code in which i take inputs (numbers) from user and count the total number of positive, negative and zeros entered. I need to clear my standard input buffer before scanf() command. My compiler is completely ignoring the fflush(stdin) command. its not even showing any... (1 Reply)
Discussion started by: Abhishek_kumar
1 Replies
connect(2)							System Calls Manual							connect(2)

Name
       connect - initiate a connection on a socket

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

       connect(s, name, namelen)
       int s;
       struct sockaddr *name;
       int namelen;

Description
       The  call  initiates  a	connection  on a socket.  The parameter s is a socket.	If the socket is of type SOCK_DGRAM, this call permanently
       specifies the peer to which datagrams are sent.	If it is of type SOCK_STREAM, this call attempts to make a connection to  another  socket.
       The other socket is specified by name, which is an address in the communications space of the socket.  Each communications space interprets
       the name parameter in its own way.  The size of the structure sockaddr is namelen.

Return Values
       If the connection or binding succeeds, then 0 is returned.  Otherwise, a -1 is returned, and a more specific error code is stored in errno.

Diagnostics
       The call fails under the following conditions:

       [EBADF]	      The s is not a valid descriptor.

       [ENOTSOCK]     The s is a descriptor for a file, not a socket.

       [EADDRNOTAVAIL]
		      The specified address is not available on this machine.

       [EAFNOSUPPORT] Addresses in the specified address family cannot be used with this socket.

       [EINPROGRESS]  The connection is requested on a socket with FNDELAY set (using

       [EISCONN]      The socket is already connected.

       [ETIMEDOUT]    Connection establishment timed out without establishing a connection.

       [ECONNREFUSED] The attempt to connect was forcefully rejected.

       [ENETUNREACH]  The network is not reachable from this host.

       [EADDRINUSE]   The address is already in use.

       [EFAULT]       The name parameter specifies an area outside the process address space.

       [EWOULDBLOCK]  The socket is nonblocking, and the connection cannot be completed immediately.  You can select the  socket  for  writing	by
		      using the system call while it is connecting.

       The following errors are specific to connecting names in the ULTRIX domain:

       [ENOTDIR]      A component of the path prefix is not a directory.

       [ENAMETOOLONG] A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters.

       [ENOENT]       The named socket does not exist.

       [EACCES]       Search permission is denied for a component of the path prefix.

       [ELOOP]	      Too many symbolic links were encountered in translating the pathname.

See Also
       accept(2), fcntl(2), getsockname(2), select(2), shutdown(2), socket(2)

																	connect(2)
All times are GMT -4. The time now is 08:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy