|
by: localhost |
last post by:
Network socket client code works correctly:
byte nameBytes = new byte;
recvData = inStream.Read( nameBytes , 0 , 1024 );
string fileNameRaw = System.Text.Encoding.UTF8.GetString( nameBytes );
string fileName = fileNameRaw.Substring( 0 ,
fileNameRaw.IndexOf("***") );
Console.WriteLine( fileName );
|
by: Charles Pratt |
last post by:
I'm having trouble with a network chat based server I'm working on in
C#, It works find during the reads, but as soon as I start sending back
data my reads from that point on are corrupted. If there's any advice,
it'd be greatly appreciated :)
// created on 11/07/2004 at 19:26
using System;
|
by: David Dvali |
last post by:
Hello.
I wnat to read some data from server, I'm using following code:
----------------------------------------------------------------------------------------
TcpClient cl = new TcpClient();
cl.Connect("SomeHost", 9000);
NetworkStream networkStream = cl.GetStream();
if (!networkStream.CanRead)
return;
|
by: simonrigby_uk |
last post by:
Hi all,
Sorry if this is the incorrect group but I couldn't see anything
directly relevant.
Can someone confirm for me what happens when two network streams are
sent to an application at the same time.
My scenario is a small server application that listens on a particular
TCP port. I am sending streams of data to it via a client app....
|
by: Adman |
last post by:
Hi all. I've done some websearching, and haven't been able to find my
question answered, so I thought I'd post. I apologize if this has
already been answered.
My question seems to be a variation of a FAQ.
I'm writing a small online game (client/server). The server spits out
a steam of data. The data can be described as a Code,...
|
|
by: Dave A |
last post by:
I have an application that does lots of socket communications all asynchronously via the TcpClient class.
The code has been working 99.9999% of the time (yeah one of those bugs) but occasionally the receiving thread would get 'stuck'.
The pattern that I have used from the reading is quite common...
AutoResetEvent waitForReadToComplete;...
|
by: tshad |
last post by:
I can't seem to retrieve messages that are not in my mailbox from Exchange.
If I am reading mail from my Exchange server, I will get messages that are
in my inbox that have already been read but not deleted (outlook).
What I am trying to get are messages that haven't been read yet?
Is there a way to do this?
Here is the code I am...
|
by: Sir Psycho |
last post by:
Hi,
For some reason, when i step over this code, it returns the full byte
stream im expecting from the server, however when I let it run with no
intervention, it only seems to grab a small chunk on the stream.
What am I doing wrong? There is more code than this, but this is the
problem code.
|
by: Peter Bradley |
last post by:
Hi,
I wonder if anyone can help me out?
I'm trying to implement an EPP (rfc4934 and rfc4930) client. So far
I've managed to connect and authorise using an X509 Certificate. This
should elicit a <greetingresponse from the server, and it's the
reading of this response that is giving me a bit of grief.
The response shoud be
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|