Update README.md
This commit is contained in:
parent
fb56ba584a
commit
4bb95063a9
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue