Update README.md

master
xethyrion 2016-11-10 13:07:23 +02:00 committed by GitHub
parent fb56ba584a
commit 4bb95063a9
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,10 @@ multiaddr for IPFS in C.
# Usage: # Usage:
#### All you need to include is multiaddr.h #### All you need to include is multiaddr.h
## Maddr struct: ## Maddr struct:
char string[]; // String that contains addresses such as /ip4/192.168.1.1/ * char string[]; // String that contains addresses such as /ip4/192.168.1.1/
uint8_t bytes; //String that contains the enecoded address * uint8_t bytes; //String that contains the enecoded address
int bsize[]; //int[1] that contains the real bytes size (Use it whenever using the bytes so you don't input trash!) * int bsize[]; //int[1] that contains the real bytes size (Use it whenever using the bytes so you don't input trash!)
## New Multi Address From String(new_maddr_fs) ## New Multi Address From String(new_maddr_fs)
char addrstr[] = "/ip4/192.168.1.1/" char addrstr[] = "/ip4/192.168.1.1/"
struct maddr a; struct maddr a;