From 36655a8f9b45442647b01adbdc1f4fc2c4e4b66d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 15 Oct 2003 16:22:36 +0000 Subject: Add a first go at MMTP. Still lacks verification of peer, but it should not be too hard to add that since all the info is already there --- src/Main.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Main.java') diff --git a/src/Main.java b/src/Main.java index bea5710..b86a8b4 100644 --- a/src/Main.java +++ b/src/Main.java @@ -6,6 +6,7 @@ import org.noreply.fancydress.directory.*; import org.noreply.fancydress.type3.*; import org.noreply.fancydress.misc.*; import org.noreply.fancydress.type3.routing.*; +import org.noreply.fancydress.type3.mmtp.*; public class Main { static public void main(String argv[]) { @@ -14,12 +15,15 @@ public class Main { DirectoryParser parser = new DirectoryParser(new DirectoryLexer(new FileReader(argv[0]))); DirectoryMessage m = (DirectoryMessage)parser.parse().value; Directory dir = new Directory(m, false); - Path path = new Path(dir,"test1 , rot26 : cf , aarg"); + Path path = new Path(dir,"test1 : tonga"); RoutingDestination address = new RoutingSMTP("peter@palfrader.org"); Payload payload = new Payload(); Packet packet = new Packet(path, address, payload); + MMTP.send(packet); + /* FileOutputStream w = new FileOutputStream("out"); w.write(packet.asOctets()); + */ } catch (Exception e) { e.printStackTrace(); -- cgit v1.2.3