Click here to Skip to main content
15,915,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
Krishna Varadharajan23-Jul-10 19:27
Krishna Varadharajan23-Jul-10 19:27 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
PIEBALDconsult23-Jul-10 19:31
mvePIEBALDconsult23-Jul-10 19:31 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
Krishna Varadharajan23-Jul-10 19:49
Krishna Varadharajan23-Jul-10 19:49 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
Krishna Varadharajan23-Jul-10 21:24
Krishna Varadharajan23-Jul-10 21:24 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
Richard MacCutchan23-Jul-10 22:01
mveRichard MacCutchan23-Jul-10 22:01 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
Dave Kreskowiak24-Jul-10 4:12
mveDave Kreskowiak24-Jul-10 4:12 
GeneralRe: Need to close other Browser's whn i open my browser ( Windows Application ) Pin
PIEBALDconsult24-Jul-10 4:34
mvePIEBALDconsult24-Jul-10 4:34 
QuestionResolved : C# Socket programming not working in communication with linux machine. [modified] Pin
jobin00700723-Jul-10 11:35
jobin00700723-Jul-10 11:35 
I have a SUSE linux machine running on the remote end which acts as tcp server.In the past this machine used to accept data over the serial port server, ie a piece of hardware that accepts serial data and converts it into TCP packets. I am trying to write an TCP/IP application to replace the port server.I am able to establish a connection between the linux machine but for some reason as soon as I send a Socket.Connect(remoteip), I am seeing SYN from my machine, SYN/ACK from linux, SYN/ACK from my machine and then SYN,FIN from linux machine and then ACK from my machine. I know that usually for a network communication, its supposed to be a three way handshake only. I see 5 channels of communication though instead of the 3. As soon as I send a packet, the linux machine sends a reset command.

I have something that can simulate what needs to be send to the remote linux machine. I compare my packats from the simulator and the packets I send , and the data packets are exactly the same. On the protocol level, there were some differences. The simulator had timestamps, so I added that using SocketOptions(....multicastdelay,1). The simulator was using a window size of 5480, so I set that using SocketOptions(..) also.

However still the linux machine is sending a reset packet as soon as I send data to it. I know that the linux machine server can accept TCP/IP communication in synchronous mode. I know the details of the what the data payload needs to be from a document and its maching the simulator . Thats all I know and I cannot get more information on it. The machine accepts data from a serial port server and works beatifully.

I am using socket programming and what i do can be summed up by the following three commands. Arguments are missing below but are correct in actual code.
socket.Connect()
socket.Send()
socket.Shutdown()
socket.Closet()

Another thing I noticed is that in Wireshark, when the simulator sends a Connect and when my machine sends a Connect, the TCP/IP options are in different order. The simultors protocol options are NOP,SACK PERMITTED, TIMESTAMP, NOP,WINDOW SCALE while mine are in a different order. I dont know to change the order, and I cant find much information about SACK PERMITTED. seems to be a default. I am programming with Visual Studio 2008 and a windows 7 computer. Any help will be appreciated.



What am I doing wrong? Please help.

Thanks
Jobin Thomas



-- Modified Tuesday, July 27, 2010 11:34 AM
AnswerRe: C# Socket programming not working in communication with linux machine. Pin
Ennis Ray Lynch, Jr.23-Jul-10 12:28
Ennis Ray Lynch, Jr.23-Jul-10 12:28 
GeneralRe: C# Socket programming not working in communication with linux machine. Pin
jobin00700726-Jul-10 2:55
jobin00700726-Jul-10 2:55 
AnswerRe: C# Socket programming not working in communication with linux machine. Pin
Richard MacCutchan23-Jul-10 22:08
mveRichard MacCutchan23-Jul-10 22:08 
AnswerRe: Resolved : C# Socket programming not working in communication with linux machine. Pin
jobin00700727-Jul-10 5:35
jobin00700727-Jul-10 5:35 
QuestionDeploy C# application with C organized dll Pin
firas_hamzeh23-Jul-10 11:23
firas_hamzeh23-Jul-10 11:23 
AnswerRe: Deploy C# application with C organized dll Pin
Luc Pattyn23-Jul-10 16:25
sitebuilderLuc Pattyn23-Jul-10 16:25 
GeneralRe: Deploy C# application with C organized dll Pin
firas_hamzeh23-Jul-10 23:05
firas_hamzeh23-Jul-10 23:05 
AnswerRe: Deploy C# application with C organized dll Pin
Luc Pattyn23-Jul-10 23:43
sitebuilderLuc Pattyn23-Jul-10 23:43 
GeneralRe: Deploy C# application with C organized dll Pin
firas_hamzeh24-Jul-10 0:08
firas_hamzeh24-Jul-10 0:08 
GeneralRe: Deploy C# application with C organized dll Pin
Luc Pattyn24-Jul-10 0:20
sitebuilderLuc Pattyn24-Jul-10 0:20 
GeneralRe: Deploy C# application with C organized dll Pin
firas_hamzeh24-Jul-10 0:42
firas_hamzeh24-Jul-10 0:42 
GeneralRe: Deploy C# application with C organized dll Pin
Luc Pattyn24-Jul-10 1:10
sitebuilderLuc Pattyn24-Jul-10 1:10 
QuestionBinaryFormater FileStream structure Pin
Mark H Bishop23-Jul-10 10:28
Mark H Bishop23-Jul-10 10:28 
AnswerRe: BinaryFormater FileStream structure Pin
Pete O'Hanlon23-Jul-10 11:07
mvePete O'Hanlon23-Jul-10 11:07 
QuestionLive GPS data and Video synchronized recording and playback Pin
faheemnadeem23-Jul-10 7:48
faheemnadeem23-Jul-10 7:48 
AnswerRe: Live GPS data and Video synchronized recording and playback Pin
Ennis Ray Lynch, Jr.23-Jul-10 9:15
Ennis Ray Lynch, Jr.23-Jul-10 9:15 
GeneralRe: Live GPS data and Video synchronized recording and playback Pin
faheemnadeem23-Jul-10 11:31
faheemnadeem23-Jul-10 11:31 

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.