aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcpclient.c4
-rw-r--r--tcpreceive.c4
-rw-r--r--tcpsend.c2
-rw-r--r--tcpserver.c2
-rw-r--r--udpreceive.c2
-rw-r--r--udpsend.c4
6 files changed, 7 insertions, 11 deletions
diff --git a/tcpclient.c b/tcpclient.c
index 1913c43..ef76863 100644
--- a/tcpclient.c
+++ b/tcpclient.c
@@ -86,9 +86,7 @@ static void *tcpclient_child_connect(void *w)
/* create a socket */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
-#ifdef DEBUG
- post("%s: send socket %d\n", objName, sockfd);
-#endif
+ DEBUG("send socket %d\n", sockfd);
if (sockfd < 0)
{
sys_sockerror("tcpclient: socket");
diff --git a/tcpreceive.c b/tcpreceive.c
index 502cbf7..a439ad3 100644
--- a/tcpreceive.c
+++ b/tcpreceive.c
@@ -221,9 +221,7 @@ static void *tcpreceive_new(t_floatarg fportno)
/* create a socket */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
-#ifdef DEBUG
- post("tcpreceive_new: socket %d port %d", sockfd, portno);
-#endif
+ DEBUG("socket %d port %d", sockfd, portno);
if (sockfd < 0)
{
sys_sockerror("tcpreceive: socket");
diff --git a/tcpsend.c b/tcpsend.c
index bb8f6fe..e4f0aba 100644
--- a/tcpsend.c
+++ b/tcpsend.c
@@ -71,7 +71,7 @@ static void tcpsend_connect(t_tcpsend *x, t_symbol *hostname,
/* create a socket */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
- DEBUG("tcpsend_connect: send socket %d\n", sockfd);
+ DEBUG("send socket %d\n", sockfd);
if (sockfd < 0)
{
sys_sockerror("tcpsend: socket");
diff --git a/tcpserver.c b/tcpserver.c
index 239b2a6..ebfd2d5 100644
--- a/tcpserver.c
+++ b/tcpserver.c
@@ -356,7 +356,7 @@ static void *tcpserver_new(t_floatarg fportno)
/* create a socket */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
- DEBUG("%s: receive socket %d", objName, sockfd);
+ DEBUG("receive socket %d", sockfd);
if (sockfd < 0)
{
diff --git a/udpreceive.c b/udpreceive.c
index 63e2838..6ad31c1 100644
--- a/udpreceive.c
+++ b/udpreceive.c
@@ -63,7 +63,7 @@ static void *udpreceive_new(t_floatarg fportno)
/* create a socket */
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
- DEBUG("udpreceive_new: socket %d port %d", sockfd, portno);
+ DEBUG("socket %d port %d", sockfd, portno);
if (sockfd < 0)
{
sys_sockerror("udpreceive: socket");
diff --git a/udpsend.c b/udpsend.c
index f35d661..bbfa2a9 100644
--- a/udpsend.c
+++ b/udpsend.c
@@ -50,7 +50,7 @@ static void udpsend_connect(t_udpsend *x, t_symbol *hostname,
/* create a socket */
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
- DEBUG("udpsend_connect: send socket %d\n", sockfd);
+ DEBUG("send socket %d\n", sockfd);
if (sockfd < 0)
{
sys_sockerror("udpsend: socket");
@@ -79,7 +79,7 @@ static void udpsend_connect(t_udpsend *x, t_symbol *hostname,
/* assign client port number */
server.sin_port = htons((u_short)portno);
- DEBUG("udpsend: connecting to port %d", portno);
+ DEBUG("connecting to port %d", portno);
/* try to connect. */
if (connect(sockfd, (struct sockaddr *) &server, sizeof (server)) < 0)
{