08-04-2010
you can start to search socket programming
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can anyone tell me a unix program that can port scan a c block of ips for proxies? a fast one, with reliable results, that can load an ip list, or set an ip range, and specify ports
thanks! (1 Reply)
Discussion started by: user
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc...
I want to see if anyone uses these programs/protocols and how often.
Is it difficult to setup a log for these ports and listen on all requests?
/combat (4 Replies)
Discussion started by: tonlu
4 Replies
3. Programming
hi,
I am writing one packet receiving program using libpcap library.
Now, I want to check port is already using or not.
how to check in receiver program..
If normal program, bind return value we can able to check the port using or not.
but, in pcap program how can i check?
thank... (1 Reply)
Discussion started by: ram.sj
1 Replies
4. IP Networking
Hi,
I am trying to configure a transparent squid cache. When I try to use the below option in squid.conf, squid listens on port 80 only for the IP address configured on the system's interface.
http_port 80 transparent
But I want squid to accept connections for any IP address on port 80.... (3 Replies)
Discussion started by: Learner32
3 Replies
5. Solaris
I was just checking to see if anyone had a script that would allow me to go from port number to program name. I tried to create my own script but it looks like it only works for IPv4 sockets and it looks like daemons such as sshd return as AF_INET6 (in pfiles) for some reason. I can fix my script... (0 Replies)
Discussion started by: thmnetwork
0 Replies
6. Solaris
Good morning!
I would like to test a particular port in Solaris, to see if the firewall rules are ok.
Should I install an application, but as yet I have not, have to force solaris to keep an open door, and put any application listening to port 1099, and will test a terminal connectivity via... (5 Replies)
Discussion started by: poyato
5 Replies
7. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
8. AIX
Hi,
I received a server that use AIX 5.x.
This server was installed from a company that doesnt exist now, and they dont leave information about it.
I only know that they installed a program that recieve information from some tty in a special format and as it is a tty, with some baud rate,... (4 Replies)
Discussion started by: trevian3969
4 Replies
LEARN ABOUT PHP
stream_socket_sendto
STREAM_SOCKET_SENDTO(3) 1 STREAM_SOCKET_SENDTO(3)
stream_socket_sendto - Sends a message to a socket, whether it is connected or not
SYNOPSIS
int stream_socket_sendto (resource $socket, string $data, [int $flags], [string $address])
DESCRIPTION
Sends the specified $data through the $socket.
PARAMETERS
o $socket
- The socket to send $data to.
o $data
- The data to be sent.
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. |
| | |
+-----------+----------------------------------+
o $address
- The address specified when the socket stream was created will be used unless an alternate address is specified in $address. If
specified, it must be in dotted quad (or [ipv6]) format.
RETURN VALUES
Returns a result code, as an integer.
EXAMPLES
Example #1
stream_socket_sendto(3) Example
<?php
/* Open a socket to port 1234 on localhost */
$socket = stream_socket_client('tcp://127.0.0.1:1234');
/* Send ordinary data via ordinary channels. */
fwrite($socket, "Normal data transmit.");
/* Send more data out of band. */
stream_socket_sendto($socket, "Out of Band data.", STREAM_OOB);
/* Close it up */
fclose($socket);
?>
SEE ALSO
stream_socket_recvfrom(3), stream_socket_client(3), stream_socket_server(3).
PHP Documentation Group STREAM_SOCKET_SENDTO(3)