You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
martin@martin:~$ telnet ip.vancl.eu 1234
Trying ip.vancl.eu...
Connected to ip.vancl.eu.
Escape character is '^]'.
77.78.90.200
Connection closed by foreign host.
martin@martin:~$
Spusteni serveru/kompilace
Spusteni z pythonu
$ python getip.py
Kompilace
$ cython --embed getip.py
$ gcc getip.c -I/usr/include/python2.7 -lpython2.7 -o getip
$ strip getip
$ du -sh getip
59K getip
$ file getip
getip: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=12166ba5208e49ff66eb73820025b860baedc78b, stripped
$
$ ./getip
Using TCP port 1234.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters