implement a bunch of utility functions on tun device primitive
This commit is contained in:
parent
486fea2088
commit
d94f20d042
9 changed files with 248 additions and 82 deletions
|
|
@ -1,7 +1,7 @@
|
|||
defmodule P2pChat do
|
||||
def hello do
|
||||
{:ok, pid1} = P2pChat.Transport.start_link(port: 12345)
|
||||
netid1 = P2pChat.Transport.get_netid(pid1)
|
||||
_netid1 = P2pChat.Transport.get_netid(pid1)
|
||||
|
||||
{:ok, pid2} = P2pChat.Transport.start_link(port: 12346)
|
||||
netid2 = P2pChat.Transport.get_netid(pid2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue