diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-10-15 16:22:36 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-10-15 16:22:36 +0000 |
commit | 36655a8f9b45442647b01adbdc1f4fc2c4e4b66d (patch) | |
tree | 7e86195f3d24b1ba20a9382d9ef3c72a555974d8 /src/Main.java | |
parent | 3401c72bcfa2f4c5faaa8b0772cfb75f9d045390 (diff) |
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
Diffstat (limited to 'src/Main.java')
-rw-r--r-- | src/Main.java | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |