UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 9491218e authored by Jeffrey Mathiowetz's avatar Jeffrey Mathiowetz
Browse files

Update ipraw.adoc

parent 83e68768
No related merge requests found
----
#!/usr/bin/python3
# For building the socket
import socket
......@@ -64,4 +63,3 @@ packet = ip_header + hidden_msg
s.sendto(packet, (dst_ip, 0))
# socket.send is a low-level method and basically just the C/syscall method send(3) / send(2). It can send less bytes than you requested, but returns the number of bytes sent.
# socket.sendall is a high-level Python-only method that sends the entire buffer you pass or throws an exception. It does that by calling socket.send until everything has been sent or an error occurs.
----
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment