09-28-2017
Is the MTU on the Suse box also 1500?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Is there any command to list samba shared folders in red hat linux 7.2
Thanks in advance
Bache Gowda (0 Replies)
Discussion started by: bache_gowda
0 Replies
2. Linux
Linux OS : Fedora 10 (No graphical mode)
Windows OS : XP and Windows Server NT
I am able to access from my windows to linux using following step
//fedora10 ip
username of admin and password
I am able to view the admin and shared printer of fedora 10.
When i try to enter in the admin... (0 Replies)
Discussion started by: nightmare49
0 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am using red hat linux, In my folder a strange folder is created i.e. " -a " , folder name is preceded with hyphen. Now if i try to remove with rm -rf -1 , i am unable to do it.
Can anyone please let me know how to do it, & what this kind of folder means
Thanks
Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies
4. Red Hat
unable to remove shared memory using ipcrm -m in linux
$ ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 root 644 80 2
0x00000000 65537 root ... (4 Replies)
Discussion started by: LinuxLearner
4 Replies
5. Red Hat
Hi,
I am using redhat linux 5.1 - 64bit,
using command
mount -t cifs //192.192.192.192/SW/Ex /192.192.192.192 -o username=test
I am getting below error.
mount: block device //192.192.192.192/SW/Ex is write-protected, mounting read-only
mount: cannot mount block device... (3 Replies)
Discussion started by: manoj.solaris
3 Replies
6. Solaris
Hello Gurus!!
Very recently i tried to mount a USB pen drive onto my solaris 10 (X4170 model) server. As i understand, in ideal scenarios it should get mounted automatically, but it did not happen. Neither anything is shown in "iostat -En" output or "rmformat -l" about the pen drive.
I also... (10 Replies)
Discussion started by: EmbedUX
10 Replies
7. UNIX and Linux Applications
Hi All,
One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like
W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies
8. Shell Programming and Scripting
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies
9. AIX
Hi,
I followed this procedure in order to mount in AIX a shared folder in windows server 2000.
https://www-304.ibm.com/support/docview.wss?uid=isg3T1012550
Ive tested the shared folder from other windows Server, and its fine.
What Ive do in AIX is:
Logon as root
Under /Home/spss/ I... (2 Replies)
Discussion started by: trevian3969
2 Replies
10. UNIX for Beginners Questions & Answers
Hi everyone,
have a good day to you.
I am trying to use NFS to share a folder between 2 linux systems.
Let's say the server which is sharing the folder is server A and the client which need to access this shared folder is server B.
In server B, i am having a Joe user which UID and GID is 500.... (1 Reply)
Discussion started by: michael_hoang
1 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 not
SYNOPSIS
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)