in a xen environment , i see a lot op dropped packets via netstat -i
Is this a sign of network problems, or is it normal to see this kind of numbers? i'm not sure how to interprete the data. is this normal, bad, critical. What are your stats on this?
I guess i have a xen issue of some sort, but not sure what yet
I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem.
I need... (1 Reply)
Hi,
My Solaris Workstation has got 4 NICS, out of which one of them(bge3) is unplugged from the rest of the external network & connected to other interface(bge1). The isolated NIC serves as a simulated Ethernet Interface for my application under development.
Now, I'd like to capture RAW... (1 Reply)
Hi,
I am using smitty to create and configure a print queue. I am giving a print of a text file to the print queue created. I am using this in network.
How to capture network packets of the print from AIX to the printer and printer to AIX.
I tried Wireshark to capture network packets.
I am... (16 Replies)
Hi gurus,
I'd like to know your opions about Single Sign On (SSO) for linux (Debian). In my company, clients want to access to different services (FTP, HTTP, Mail, Web Applications ). I think about OpenLDAP and Proxy (Squid, Vulture) to resolve this problem but i'm not sure if they can. Are there... (0 Replies)
This is the mistake that i've done :
First of all go to /etc/apt/sources.list folder from terminal or using file manager ...
than copy the content of sources.list in to your adequate source.list.
Create a file named sources.list.bt and paste the same content
In the end open the... (0 Replies)
Fedora and openSUSE will replace MySQL with MariaDB:
Oracle who? Fedora & openSUSE will replace MySQL with MariaDB | ZDNet
The article also has a comment that Chakra is planning on doing the same. No doubt the Fedora based distributions are planning to do the same. (7 Replies)
I have three systems A,B,C. I want to configure A in such a way that all packets from A to C goes via B.
I tried:
1. ip route add 'ip of C' via 'ip of B'
2. route add -net 'net address' netmask gw 'ip of B'
These commands work initially when I try a ping or traceroute and expire after... (2 Replies)
Hi All,
As per my biz requirement, I need to drop the partition from our PROD table based on the retention period.
Hence I have written the script and called the drop partition procedure within the script.
The procedure is working fine and droped the partition from the table when I execute... (4 Replies)
Discussion started by: suresh_target
4 Replies
LEARN ABOUT PHP
stream_socket_recvfrom
STREAM_SOCKET_RECVFROM(3) 1 STREAM_SOCKET_RECVFROM(3)stream_socket_recvfrom - Receives data from a socket, connected or notSYNOPSIS
string stream_socket_recvfrom (resource $socket, int $length, [int $flags], [string &$address])
DESCRIPTION stream_socket_recvfrom(3) accepts data from a remote socket up to $length bytes.
PARAMETERS
o $socket
- The remote socket.
o $length
- The number of bytes to receive from the $socket.
o $flags
- The value of $flags can be any combination of the following:
Possible values for $flags
+------------+---------------------------------------------------+
| | |
|STREAM_OOB | |
| | |
| | Process OOB ( out-of-band) data. |
| | |
| | |
|STREAM_PEEK | |
| | |
| | Retrieve data from the socket, but do not con- |
| | sume the buffer. Subsequent calls to fread(3) or |
| | stream_socket_recvfrom(3) will see the same data. |
| | |
+------------+---------------------------------------------------+
o $address
- If $address is provided it will be populated with the address of the remote socket.
RETURN VALUES
Returns the read data, as a string
EXAMPLES
Example #1
stream_socket_recvfrom(3) example
<?php
/* Open a server socket to port 1234 on localhost */
$server = stream_socket_server('tcp://127.0.0.1:1234');
/* Accept a connection */
$socket = stream_socket_accept($server);
/* Grab a packet (1500 is a typical MTU size) of OOB data */
echo "Received Out-Of-Band: '" . stream_socket_recvfrom($socket, 1500, STREAM_OOB) . "'
";
/* Take a peek at the normal in-band data, but don't comsume it. */
echo "Data: '" . stream_socket_recvfrom($socket, 1500, STREAM_PEEK) . "'
";
/* Get the exact same packet again, but remove it from the buffer this time. */
echo "Data: '" . stream_socket_recvfrom($socket, 1500) . "'
";
/* Close it up */
fclose($socket);
fclose($server);
?>
NOTES
Note
If a message received is longer than the $length parameter, excess bytes may be discarded depending on the type of socket the mes-
sage is received from (such as UDP).
Note
Calls to stream_socket_recvfrom(3) on socket-based streams, after calls to buffer-based stream functions (like fread(3) or
stream_get_line(3)) read data directly from the socket and bypass the stream buffer.
SEE ALSO stream_socket_sendto(3), stream_socket_client(3), stream_socket_server(3).
PHP Documentation Group STREAM_SOCKET_RECVFROM(3)