import sys, socket
result = socket.getaddrinfo(“77.238.178.122”, None)
print result[0][4]
import sys, socket
result = socket.getaddrinfo(“77.238.178.122”, None)
print result[0][4]
import sys, socket
try:
result = socket.gethostbyaddr(“209.85.148.138”)
print “Host
canonpath Syntaxe: File::Spec->canonpath catfile Syntaxe: File::Spec->catfile(dir[, dir…], file) Posts Related to Les Méthodes du Module File::Spec::Win32 Compter le nombre de ligne d’un fichier{filelink=14349} $fichier=”c:/index.html”…
#!/usr/bin/perl
use Socket;
$identite_client = getpeername(SOCKET)
or die “Impossible d’id
import socket
# Création d’un socket de type datagramme
s = socket.socket(socket.AF_INET, s
import socket
s = socket.socket( )
print s.getsockopt(s.SOL_SOCKET, s.SO_REUSEADDR)
#!/usr/local/bin/perl
############## Socket Client ################
use Socket;