71 Topics

Member Avatar for
Member Avatar for Clawsy

Hi, I make an application in java ME (client) that connects to a PC application (server) using OBEX protocol. Connection goes well but I don't understand why I can use the stream to send JUST one message frmo the client and after that I must close the stream to see …

Member Avatar for kvnpk74
0
228
Member Avatar for emmonssw

I have a csv file that has 12 columns. I've been using: [code=c++] while(!infile.eof()) { getline( infile, source, ',' ); outfile << source << ", "; getline( infile, native_ID, ',' ); outfile << native_ID << ", "; getline( infile, index, ',' ); outfile << index << ", "; getline( infile, …

Member Avatar for emmonssw
0
131
Member Avatar for Ja14

This is as much of a question about algorithm as it is about code. I’m training monkeys to input data into a keyboard in the form of a table. I have created a special keyboard with nothing on it but numbers 0 - 9, a period, tab key and a …

Member Avatar for Ja14
0
121
Member Avatar for hkBattousai

A most basic TCT connection is established with the code below: [CODE]// Initialization IPEndPoint m_IpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.71"), 5000); Socket m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); NetworkStream m_Stream = new NetworkStream(m_Socket); // Read/write operations m_Stream.Write(System.Text.Encoding.ASCII.GetBytes("Hello world!"), 0, 12); byte[] read_buffer = new byte[4096]; m_Stream.Read(read_buffer, 0, 4096); // Closing open resources …

Member Avatar for mcriscolo
0
344
Member Avatar for micka10

Hi, I'm trying to capture an audio stream from Axis IP camera. The audio data encoded as g.711 should be captured from the camera. I'm using the following http request: [code] Stream roughStream = null; string URLaudio = "http://5.123.220.228/axis-cgi/audio/receive.cgi?httptype=singlepart"; request = (HttpWebRequest)HttpWebRequest.Create(URLaudio); request.Credentials = new NetworkCredential("admin", "password"); request.Method = "GET"; …

Member Avatar for micka10
0
727
Member Avatar for jd_davis

Greetings, I'm working my way through the Head Start C# book, and I know that whenever I open a stream [CODE=c#]Stream reader = File.Open(filename));[/CODE] I [B][I][U]ALWAYS[/U][/I][/B] [CODE=c#]reader.Close();[/CODE] my stream. The book also lets you know you can use a using block [CODE=c#]using (Stream ...) { }[/CODE] and the stream will …

Member Avatar for MattBerry
1
827
Member Avatar for Clawsy

I'm am trying to send over socket a very big array - length about 1300000 .... and I use ObjectInputStream and ObjectOutputStream. The problem is when I read the input stream... I get this exception: java.io.StreamCorruptedException: invalid type code: FF at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1356) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at objectThread.run(objectThread.java:27) [CODE] //ois is the …

Member Avatar for Clawsy
0
1K
Member Avatar for Alibeg

I guess i'm missing something basic, but i'm new to C++ and do not know how do these streams behave. Can someone please explain why no text is printed to the screen in the following example: [code=C++] #include <iostream> using namespace std; int main (void) { char *ptr = NULL; …

Member Avatar for Alibeg
0
154
Member Avatar for RoyMicro

Hello There seems to be different methods to create a text file in C#. I am getting a byte array from USB device. I need to store this as text file which is to be read, updated, and saved for future usage. The data comes in different packets not in …

Member Avatar for Geekitygeek
2
182
Member Avatar for ctrl-alt-del

Hi all! Well, the name isn't entirely accurate but since I have found it very hard to find some actual useful information on the topic I decided to name it as such. Purely as a programming practice I would like to make a calendar application. Something along the lines of …

Member Avatar for kvprajapati
0
178
Member Avatar for EddieC

Isn't anything safe from hackers? Now they've apparently found a way to hack into systems through a media stream, threatening users with denial of service attacks that can bring down servers and desktops alike. The vulnerability was reported yesterday by VoIPshield Laboratories, a security tools maker in Canada. The flaws …

Member Avatar for baandow
0
245

The End.