aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/tcpclient.c10
-rw-r--r--net/tcpsend.c8
-rw-r--r--net/udpsend.c8
3 files changed, 13 insertions, 13 deletions
diff --git a/net/tcpclient.c b/net/tcpclient.c
index 23c1400..f3c63b3 100644
--- a/net/tcpclient.c
+++ b/net/tcpclient.c
@@ -266,12 +266,12 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv)
e = f - d;
if (e != 0)
{
- error("%s_send: item %d (%f) is not an integer", objName, i, f);
+ pd_error(x, "%s_send: item %d (%f) is not an integer", objName, i, f);
return;
}
if ((d < 0) || (d > 255))
{
- error("%s: item %d (%f) is not between 0 and 255", objName, i, f);
+ pd_error(x, "%s: item %d (%f) is not between 0 and 255", objName, i, f);
return;
}
c = (unsigned char)d;
@@ -312,7 +312,7 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv)
}
else
{
- error("%s_send: item %d is not a float or a file name", objName, i);
+ pd_error(x, "%s_send: item %d is not a float or a file name", objName, i);
return;
}
}
@@ -330,7 +330,7 @@ int tcpclient_send_buf(t_tcpclient *x, char *buf, int buf_len)
if (x->x_blocked) return 0;
if (x->x_fd < 0)
{
- error("%s: not connected", objName);
+ pd_error(x, "%s: not connected", objName);
x->x_blocked++;
return 0;
}
@@ -463,7 +463,7 @@ static void tcpclient_rcv(t_tcpclient *x)
ret = select(sockfd+1, &readset, NULL, &exceptset, &ztout);
if(ret < 0)
{
- error("%s: unable to read from socket", objName);
+ pd_error(x, "%s: unable to read from socket", objName);
sys_closesocket(sockfd);
return;
}
diff --git a/net/tcpsend.c b/net/tcpsend.c
index b576eae..7aef491 100644
--- a/net/tcpsend.c
+++ b/net/tcpsend.c
@@ -142,13 +142,13 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv)
e = f - d;
if (e != 0)
{
- error("tcpsend_send: item %d (%f) is not an integer", i, f);
+ pd_error(x, "tcpsend_send: item %d (%f) is not an integer", i, f);
return;
}
c = (unsigned char)d;
if (c != d)
{
- error("tcpsend_send: item %d (%f) is not between 0 and 255", i, f);
+ pd_error(x, "tcpsend_send: item %d (%f) is not between 0 and 255", i, f);
return;
}
#ifdef DEBUG
@@ -191,7 +191,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv)
}
else
{
- error("tcpsend_send: item %d is not a float or a file name", i);
+ pd_error(x, "tcpsend_send: item %d is not a float or a file name", i);
return;
}
}
@@ -229,7 +229,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv)
}
}
}
- else error("tcpsend: not connected");
+ else pd_error(x, "tcpsend: not connected");
}
static void tcpsend_free(t_tcpsend *x)
diff --git a/net/udpsend.c b/net/udpsend.c
index 98db672..2cf082b 100644
--- a/net/udpsend.c
+++ b/net/udpsend.c
@@ -144,13 +144,13 @@ static void udpsend_send(t_udpsend *x, t_symbol *s, int argc, t_atom *argv)
e = f - d;
if (e != 0)
{
- error("udpsend_send: item %d (%f) is not an integer", i, f);
+ pd_error(x, "udpsend_send: item %d (%f) is not an integer", i, f);
return;
}
c = (unsigned char)d;
if (c != d)
{
- error("udpsend_send: item %d (%f) is not between 0 and 255", i, f);
+ pd_error(x, "udpsend_send: item %d (%f) is not between 0 and 255", i, f);
return;
}
#ifdef DEBUG
@@ -193,7 +193,7 @@ static void udpsend_send(t_udpsend *x, t_symbol *s, int argc, t_atom *argv)
}
else
{
- error("udpsend_send: item %d is not a float or a file name", i);
+ pd_error(x, "udpsend_send: item %d is not a float or a file name", i);
return;
}
}
@@ -231,7 +231,7 @@ static void udpsend_send(t_udpsend *x, t_symbol *s, int argc, t_atom *argv)
}
}
}
- else error("udpsend: not connected");
+ else pd_error(x, "udpsend: not connected");
}
static void udpsend_free(t_udpsend *x)