ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/SubNet.cpp
(Generate patch)

Comparing projects/cms/source/host/c++/SubNet.cpp (file contents):
Revision 1.1 by ab11, Mon Mar 5 14:02:27 2001 UTC vs.
Revision 1.2 by ab11, Tue Mar 6 00:39:13 2001 UTC

# Line 28 | Line 28 | SubNet::SubNet(){
28  
29   string SubNet::sendTCP(string text){
30          
31 <        char  buf[1024];
31 >        int size = 1024;
32 >        char  buf[size];
33          
34          (*socket) << text.c_str() << "\n" << flush; //
35          
36 <        (*socket).getline (buf, 1024);
36 >        (*socket).getline (buf, size-1);
37          
38          return buf;
39          
# Line 55 | Line 56 | void SubNet::sendUPDPacket( string host, int port, str
56          // int sndBufSize = (*udp)->sendbufsz(udpSize);
57          
58          (*udp)->connect (host.c_str(), port);
59 <        (*udp) << message.c_str() << endl;
59 >        (*udp) << message.c_str() << flush << endl;
60      
61          delete udp;
62      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines