daphne: main.o citclient.o userlogin.o testwindow.o who.o \
utils.o express_message.o send_express.o \
- roomtree.o roomview.o
+ roomtree.o roomview.o tcp_sockets.o
c++ main.o citclient.o userlogin.o testwindow.o who.o \
utils.o express_message.o send_express.o \
- roomtree.o roomview.o \
+ roomtree.o roomview.o tcp_sockets.o \
$(LFLAGS) -o daphne
main.o: main.cpp includes.hpp
roomview.o: roomview.cpp includes.hpp
c++ -c $(CFLAGS) roomview.cpp
+
+tcp_sockets.o: tcp_sockets.cpp includes.hpp
+ c++ -c $(CFLAGS) tcp_sockets.cpp
// First try to locate a line break
pos = buf.Find('\n', FALSE);
if ( (pos >=0) && (pos < 256) ) {
- outputlist.Add(buf.Mid(0, pos-1));
+ outputlist.Add(buf.Left(pos-1));
buf = buf.Mid(pos+1);
} else {
// Otherwise, try to find a space
pos = buf.Mid(0, 256).Find(' ', TRUE);
if ( (pos >=0) && (pos < 256) ) {
- outputlist.Add(buf.Mid(0, pos-1));
+ outputlist.Add(buf.Left(pos-1));
buf = buf.Mid(pos+1);
} else {
pos = 255;
- outputlist.Add(buf.Mid(0, pos-1));
+ outputlist.Add(buf.Left(pos-1));
buf = buf.Mid(pos);
}
}
p = outputbuf.First('|');
if (p > 0) {
- outputbuf = outputbuf.Mid(0, p);
+ outputbuf = outputbuf.Left(p);
}
}
wxString buf;
extract(buf, inputbuf, parmnum);
- return atoi(buf);
+ return atoi((const char *)buf);
}