From 64fd480954d3a8b305081fa258bd1b4988acfd30 Mon Sep 17 00:00:00 2001 From: xethyrion Date: Thu, 10 Nov 2016 10:26:10 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f83f4aa..9096c91 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,12 @@ int bsize[]; //int[1] that contains the real bytes size (Use it whenever using t * m_decapsulate(&a,"udp"); //Removes udp protocol and its address * Now the string is: /ip4/192.168.1.1/ * m_encapsulate(&a,"/tcp/8080"); -* Now the string is: /ip4/192.168.1.1/tcp/8080/ +* Now the string is: /ip4/192.168.1.1/tcp/8080/ + # Constructing a multiaddress from bytes: + * struct maddr beta; * beta=new_maddr_fb(a.bytes,a.bsize[0]); //This will already construct back to the string too! * printf("B STRING: %s\n",beta.string); //So after encapsulation and decapsulation atm this string would -* contain: /ip4/192.168.1.1/tcp/8080/ +* contain: /ip4/192.168.1.1/tcp/8080/