summaryrefslogtreecommitdiff
path: root/net/cyphesis/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/cyphesis/files')
-rw-r--r--net/cyphesis/files/patch-client-ClientConnection.cpp20
-rw-r--r--net/cyphesis/files/patch-common-system.cpp17
-rw-r--r--net/cyphesis/files/patch-server-CommClient.cpp29
-rw-r--r--net/cyphesis/files/patch-tools-AdminClient.cpp20
-rw-r--r--net/cyphesis/files/patch-tools-cycmd.cpp20
5 files changed, 106 insertions, 0 deletions
diff --git a/net/cyphesis/files/patch-client-ClientConnection.cpp b/net/cyphesis/files/patch-client-ClientConnection.cpp
new file mode 100644
index 000000000000..7d2f5ca5da7f
--- /dev/null
+++ b/net/cyphesis/files/patch-client-ClientConnection.cpp
@@ -0,0 +1,20 @@
+--- client/ClientConnection.cpp.orig Sun Oct 2 18:13:33 2005
++++ client/ClientConnection.cpp Sun Oct 2 18:13:55 2005
+@@ -172,7 +172,7 @@
+
+ int ClientConnection::negotiate()
+ {
+- Atlas::Net::StreamConnect conn("cyphesis_aiclient", ios, *this);
++ Atlas::Net::StreamConnect conn("cyphesis_aiclient", ios);
+
+ debug(std::cout << "Negotiating... " << std::flush;);
+ while (conn.getState() == Atlas::Net::StreamConnect::IN_PROGRESS) {
+@@ -185,7 +185,7 @@
+ return -1;
+ }
+
+- codec = conn.getCodec();
++ codec = conn.getCodec(*this);
+
+ encoder = new Atlas::Objects::ObjectsEncoder(*codec);
+
diff --git a/net/cyphesis/files/patch-common-system.cpp b/net/cyphesis/files/patch-common-system.cpp
new file mode 100644
index 000000000000..3f23278df2a7
--- /dev/null
+++ b/net/cyphesis/files/patch-common-system.cpp
@@ -0,0 +1,17 @@
+--- common/system.cpp.orig Sun Oct 2 17:42:56 2005
++++ common/system.cpp Sun Oct 2 17:43:29 2005
+@@ -74,6 +74,14 @@
+ #endif
+ }
+
++#ifndef SA_ONESHOT
++# ifdef SA_RESETHAND
++# define SA_ONESHOT SA_RESETHAND
++# else
++# define SA_ONESHOT 0
++# endif
++#endif
++
+ void interactive_signals()
+ {
+ #if defined(HAVE_SIGACTION)
diff --git a/net/cyphesis/files/patch-server-CommClient.cpp b/net/cyphesis/files/patch-server-CommClient.cpp
new file mode 100644
index 000000000000..d4710f217c2b
--- /dev/null
+++ b/net/cyphesis/files/patch-server-CommClient.cpp
@@ -0,0 +1,29 @@
+--- server/CommClient.cpp.orig Sun Oct 2 18:09:37 2005
++++ server/CommClient.cpp Sun Oct 2 18:11:05 2005
+@@ -28,7 +28,7 @@
+ {
+ m_clientIos.setTimeout(0,1000);
+
+- m_negotiate = new Atlas::Net::StreamAccept("cyphesis " + m_commServer.m_server.getName(), m_clientIos, *this);
++ m_negotiate = new Atlas::Net::StreamAccept("cyphesis " + m_commServer.m_server.getName(), m_clientIos);
+ }
+
+ CommClient::CommClient(CommServer & svr, BaseEntity & c) :
+@@ -38,7 +38,7 @@
+ {
+ m_clientIos.setTimeout(0,1000);
+
+- m_negotiate = new Atlas::Net::StreamConnect("cyphesis " + m_commServer.m_server.getName(), m_clientIos, *this);
++ m_negotiate = new Atlas::Net::StreamConnect("cyphesis " + m_commServer.m_server.getName(), m_clientIos);
+ }
+
+ CommClient::~CommClient()
+@@ -85,7 +85,7 @@
+ // Negotiation was successful
+
+ // Get the codec that negotiation established
+- m_codec = m_negotiate->getCodec();
++ m_codec = m_negotiate->getCodec(*this);
+
+ // Create a new encoder to send high level objects to the codec
+ m_encoder = new Atlas::Objects::ObjectsEncoder(*m_codec);
diff --git a/net/cyphesis/files/patch-tools-AdminClient.cpp b/net/cyphesis/files/patch-tools-AdminClient.cpp
new file mode 100644
index 000000000000..9f3525788217
--- /dev/null
+++ b/net/cyphesis/files/patch-tools-AdminClient.cpp
@@ -0,0 +1,20 @@
+--- tools/AdminClient.cpp.orig Sun Oct 2 18:16:32 2005
++++ tools/AdminClient.cpp Sun Oct 2 18:16:51 2005
+@@ -408,7 +408,7 @@
+ int AdminClient::negotiate()
+ {
+ // Do client negotiation with the server
+- Atlas::Net::StreamConnect conn("cycmd", *ios, *this);
++ Atlas::Net::StreamConnect conn("cycmd", *ios);
+
+ while (conn.getState() == Atlas::Negotiate::IN_PROGRESS) {
+ // conn.poll() does all the negotiation
+@@ -423,7 +423,7 @@
+ // Negotiation was successful
+
+ // Get the codec that negotiation established
+- codec = conn.getCodec();
++ codec = conn.getCodec(*this);
+
+ // Create the encoder
+ encoder = new Atlas::Objects::ObjectsEncoder(*codec);
diff --git a/net/cyphesis/files/patch-tools-cycmd.cpp b/net/cyphesis/files/patch-tools-cycmd.cpp
new file mode 100644
index 000000000000..ede187aa0a7b
--- /dev/null
+++ b/net/cyphesis/files/patch-tools-cycmd.cpp
@@ -0,0 +1,20 @@
+--- tools/cycmd.cpp.orig Sun Oct 2 18:15:03 2005
++++ tools/cycmd.cpp Sun Oct 2 18:15:34 2005
+@@ -589,7 +589,7 @@
+ int Interactive<Stream>::negotiate()
+ {
+ // Do client negotiation with the server
+- Atlas::Net::StreamConnect conn("cycmd", ios, *this);
++ Atlas::Net::StreamConnect conn("cycmd", ios);
+
+ std::cout << "Negotiating... " << std::flush;
+ while (conn.getState() == Atlas::Negotiate::IN_PROGRESS) {
+@@ -606,7 +606,7 @@
+ // Negotiation was successful
+
+ // Get the codec that negotiation established
+- codec = conn.getCodec();
++ codec = conn.getCodec(*this);
+
+ // Create the encoder
+ encoder = new Atlas::Objects::ObjectsEncoder(*codec);