This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
import java.nio.file.*; | |
public class Client |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
import java.time.LocalTime; | |
public class Client | |
{ |
This file contains hidden or 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
int blockLow = 0; | |
int blockHigh = 0; | |
byteStream.write(blockHigh); | |
byteStream.write(blockLow); | |
. | |
. | |
. | |
blockLow++; |
This file contains hidden or 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
public static void read(ByteArrayOutputStream sendStream, File file, String mode) | |
{ | |
switch(mode) | |
{ | |
case "octet": | |
try | |
{ | |
FileInputStream fileStream = new FileInputStream(file); | |
int remaining = fileStream.available() - ((Client.BUFFER_SIZE-4)*Client.filePosition); |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
public class Client | |
{ | |
public static int serverPort = 69; |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
public class Client | |
{ | |
public static int serverPort = 69; |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
public class Client | |
{ | |
public static int serverPort = 69; |
This file contains hidden or 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
# Import smtplib for the actual sending function | |
import smtplib, sys, os | |
# Import the email modules we'll need | |
from email.mime.text import MIMEText | |
MY_ADDRESS = '[email protected]' | |
PASSWORD = '<EMAIL PASSWORD>' | |
message = 'Your network settings are: ' |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
import java.util.*; | |
import java.nio.charset.*; | |
public class Client | |
{ | |
public static int serverPort = 69; |
This file contains hidden or 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
// Client | |
import java.net.*; | |
import java.io.*; | |
public class Client | |
{ | |
public static void main(String args[]) | |
{ | |
byte buffer[] = new byte[100]; |