Skip to content

Commit

Permalink
Bunch of silly things to get Brunet to run on latest versions of Mono…
Browse files Browse the repository at this point in the history
… and Win 7, extremely annoying silly things that you have to deal with when switching between Mono 4.0 to .Net 4.0
  • Loading branch information
pstjuste committed Aug 7, 2013
1 parent b3c20d5 commit d17c9d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Brunet/Applications/default.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<include name="Brunet.Xmpp.dll"/>
<include name="CookComputing.XmlRpcV2.dll" />
<include name="ManagedOpenSsl.dll"/>
<include name="Mono.Security.dll" />
<include name="NDesk.Options.dll"/>
<include name="jabber-net.dll" />
<include name="zlib.net.dll" />
Expand Down
18 changes: 9 additions & 9 deletions src/Brunet/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ protected Node(Address addr) : this(addr, "global") { }
protected Node(Address addr, string realm)
{
//Start with the address hashcode:

_sync = new Object();
lock(_sync)
{
Expand All @@ -104,16 +103,17 @@ protected Node(Address addr, string realm)
_running = 0;
_send_pings = 1;

TransportAddress.TAType[] ord = new TransportAddress.TAType[6];
ord[0] = TransportAddress.TAType.S;
ord[1] = TransportAddress.TAType.SO;
ord[2] = TransportAddress.TAType.Function;
ord[3] = TransportAddress.TAType.Udp;
ord[4] = TransportAddress.TAType.Tcp;
ord[5] = TransportAddress.TAType.Relay;

//The default is pretty good, but add fallback handling of Relay:
var erp = DefaultERPolicy.Create(Brunet.Relay.RelayERPolicy.Instance,
addr,
TransportAddress.TAType.S,
TransportAddress.TAType.SO,
TransportAddress.TAType.Function,
TransportAddress.TAType.Udp,
TransportAddress.TAType.Tcp,
TransportAddress.TAType.Relay
);
addr, ord);
_connection_table = new ConnectionTable(erp);
_connection_table.ConnectionEvent += this.ConnectionHandler;

Expand Down
1 change: 0 additions & 1 deletion src/Brunet/Security/Utils/default.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<copy todir="${build.dir}">
<fileset basedir="${lib.dir}">
<include name="Brunet.dll" />
<include name="Mono.Security.dll" />
</fileset>
</copy>

Expand Down
2 changes: 0 additions & 2 deletions src/Brunet/Security/default.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<copy todir="${build.dir}">
<fileset basedir="${lib.dir}">
<include name="ManagedOpenSsl.dll"/>
<include name="Mono.Security.dll" />
<include name="Brunet.dll" />
<include name="Brunet.Mock.dll" />
</fileset>
Expand Down Expand Up @@ -42,7 +41,6 @@
<fileset basedir="${lib.dir}">
<include name="Brunet.dll" />
<include name="ManagedOpenSsl.dll"/>
<include name="Mono.Security.dll" />
</fileset>
</copy>

Expand Down

0 comments on commit d17c9d9

Please sign in to comment.