How to kill TCP connection???
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: How to kill TCP connection???

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    18

    Arrow How to kill TCP connection???

    I have written a server-client program, I can successfully establish TCP connection between serve7r & client using sockets. Now, I have some functionality where server gets a data item from client & does a comparison. I want to break the TCP connection if the 2 data items being compared don't match. M writing in java but I dunno how 2 include tis functionality.

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: How to kill TCP connection???

    Have you tried closing the socket?
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  3. #3
    Join Date
    May 2002
    Location
    Lindenhurst, NY
    Posts
    867

    Re: How to kill TCP connection???

    A few suggestions:
    - Use code tags.
    - Speak English.

  4. #4
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: How to kill TCP connection???

    Post the full error message so we can see what the problem is and read the "Before you Post" thread to see how to use code tags or read the text in blue at the bottom of this post which shows you.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  5. #5
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: How to kill TCP connection???

    Do not reply to this thread. See this thread instead:

    http://www.codeguru.com/forum/showthread.php?t=508255
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center