Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
GeneralSending Serialized data across a socket between two programs Pin
Guinness4Strength9-Nov-04 9:10
Guinness4Strength9-Nov-04 9:10 
Generaltesting for equality Pin
John L. DeVito9-Nov-04 8:58
professionalJohn L. DeVito9-Nov-04 8:58 
GeneralRe: testing for equality Pin
Steve Maier9-Nov-04 9:40
professionalSteve Maier9-Nov-04 9:40 
GeneralRe: testing for equality Pin
John L. DeVito9-Nov-04 10:13
professionalJohn L. DeVito9-Nov-04 10:13 
Generalc programming Pin
kp20dub9-Nov-04 7:40
kp20dub9-Nov-04 7:40 
GeneralRe: c programming Pin
DougW489-Nov-04 20:55
DougW489-Nov-04 20:55 
GeneralRemove Video question.. Pin
OMalleyW9-Nov-04 7:05
OMalleyW9-Nov-04 7:05 
GeneralC# FTP Client - a part of received message missing Pin
miki_wawa9-Nov-04 6:08
sussmiki_wawa9-Nov-04 6:08 
I use a simple ftp client code (that I've found on the internet) in my application.
The problem is that I can't receive the WHOLE response message from some ftp servers.
I've noticed that if the server response is short (one or two lines) it works fine (Socket receive(...) method is able to catch the whole response), but when the server response is a little bit longer (i.e. GuildFTP - three lines) - only first two lines are received.
Has someone noticed the same problem?
Many thanks for help in advance.

Socket client = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);<br />
IPEndPoint ipep = new IPEndPoint(Dns.Resolve(remoteHost).AddressList[0], remotePort);<br />
<br />
client.Connect(ipep);<br />
<br />
Byte[] buffer = new Byte[1024];<br />
<br />
client.Receive(buffer);<br />
					<br />
// problem: not the whole server response:<br />
MessageBox.Show(ASCII.GetString(buffer));<br />

GeneralSimple Parse a simple HTTP Response Pin
berlinbrown9-Nov-04 5:58
berlinbrown9-Nov-04 5:58 
GeneralRe: Simple Parse a simple HTTP Response Pin
Stefan Troschuetz9-Nov-04 21:49
Stefan Troschuetz9-Nov-04 21:49 
GeneralRe: Simple Parse a simple HTTP Response Pin
berlinbrown10-Nov-04 2:14
berlinbrown10-Nov-04 2:14 
GeneralRe: Simple Parse a simple HTTP Response Pin
Stefan Troschuetz10-Nov-04 2:26
Stefan Troschuetz10-Nov-04 2:26 
QuestionIs there any function in c#.net like &quot;_i64toa? Pin
FlyToYou9-Nov-04 4:47
FlyToYou9-Nov-04 4:47 
AnswerRe: Is there any function in c#.net like &quot;_i64toa? Pin
Stefan Troschuetz9-Nov-04 4:57
Stefan Troschuetz9-Nov-04 4:57 
AnswerRe: Is there any function in c#.net like &quot;_i64toa? Pin
Tom Larsen9-Nov-04 5:02
Tom Larsen9-Nov-04 5:02 
GeneralGive up now Pin
leppie9-Nov-04 4:12
leppie9-Nov-04 4:12 
GeneralRe: student request Pin
DougW489-Nov-04 21:13
DougW489-Nov-04 21:13 
Generalfile execution Pin
Pyro Joe9-Nov-04 3:58
Pyro Joe9-Nov-04 3:58 
GeneralRe: file execution Pin
Stefan Troschuetz9-Nov-04 4:26
Stefan Troschuetz9-Nov-04 4:26 
GeneralRe: file execution Pin
Pyro Joe11-Nov-04 3:48
Pyro Joe11-Nov-04 3:48 
GeneralRe: file execution Pin
Stefan Troschuetz11-Nov-04 4:35
Stefan Troschuetz11-Nov-04 4:35 
Generalstudent request Pin
Daemon81189-Nov-04 3:58
Daemon81189-Nov-04 3:58 
GeneralExclude color from Video Pin
machocr9-Nov-04 3:42
machocr9-Nov-04 3:42 
GeneralRe: Exclude color from Video Pin
yoaz9-Nov-04 20:08
yoaz9-Nov-04 20:08 
GeneralVisual Studio.NET DataBinding Issue Pin
Amour Rashid9-Nov-04 2:28
Amour Rashid9-Nov-04 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.